IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2007, 11:02:38 AM (19 years ago)
Author:
eugene
Message:

allowing user CC, CFLAGS, etc, from updated configure.tcsh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/misc/Makefile

    r10509 r11880  
    1111INC     =       $(HOME)/include
    1212
    13 CFLAGS  =       -I$(INC) -I$(DESTINC) $(INCDIRS) -D$(ARCH)
    14 LDFLAGS =       -L$(LIB) -L$(DESTLIB) $(LIBDIRS) $(LIBFLAGS)
    15 LDFLAGS :=      -ldvo -lFITS -lohana $(LDFLAGS)
     13FULL_CFLAGS   = $(CFLAGS)
     14FULL_CPPFLAGS = $(CPPFLAGS) -I$(INC) -I$(DESTINC) $(INCDIRS) -D$(ARCH)
     15FULL_LDFLAGS  = $(LDFLAGS) -L$(LIB) -L$(DESTLIB) $(LIBDIRS) -ldvo -lFITS -lohana $(LIBFLAGS)
    1616
    1717# these are all programs which just depend on a single c file: foo : foo.c
     18# we use a special set of rules in this directory which expect this simplification
    1819
    1920PROGRAMS = gconfig mknames fhead ftable fields list_astro glockfile \
     
    4546
    4647%.$(ARCH).o : %.c
    47         $(CC) $(CFLAGS) -c $< -o $@
     48        $(CC) $(FULL_CFLAGS) $(FULL_CPPFLAGS) -c $< -o $@
    4849
    4950$(BIN)/%.$(ARCH) : $(SRC)/%.$(ARCH).o
    5051        @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi
    51         $(CC) -o $@ $^ $(LDFLAGS)
     52        $(CC) $(FULL_CFLAGS) -o $@ $^ $(FULL_LDFLAGS)
    5253
    5354$(DESTBIN)/%: $(BIN)/%.$(ARCH)
Note: See TracChangeset for help on using the changeset viewer.