IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

configure cleanups:

  • moved some functions to config.tools
  • added layer in configure to catch CC="... .." options
  • interpret env CC or CC= options
  • moved ranlib setting to configure.tcsh
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/Makefile.Common

    r11750 r11888  
    11# this file must be added to the makefile *after* LIB,BIN, etc are defined
    22
    3 # XXX replace BINDIR, etc with DESTBIN in Configure.in
     3# (INC)     & (LIB)     are the program's local include & lib directories
     4# (DESTINC) & (DESTLIB) are the target installation include & lib directories
     5# (INCDIRS) & (LIBDIRS) are all of the probed include & lib directories
     6# (LIBFLAGS) is the list of -lXXX directives from configure for external libs
    47
    5 CFLAGS  =       -I$(INC) -I$(DESTINC) $(INCDIRS) -D$(ARCH)
    6 LDFLAGS =       -L$(LIB) -L$(DESTLIB) $(LIBDIRS) $(LIBFLAGS)
     8BASE_CFLAGS   = $(CFLAGS)
     9BASE_CPPFLAGS = $(CPPFLAGS) -I$(INC) -I$(DESTINC) $(INCDIRS) -D$(ARCH)
     10BASE_LDFLAGS  = $(LDFLAGS) -L$(LIB) -L$(DESTLIB) $(LIBDIRS) $(LIBFLAGS)
    711
    812.PRECIOUS: %.$(ARCH).o
     
    1822
    1923%.$(ARCH).o : %.c
    20         $(CC) $(CFLAGS) -c $< -o $@
     24        $(CC) $(FULL_CFLAGS) $(FULL_CPPFLAGS) -c $< -o $@
    2125
    2226$(BIN)/%.$(ARCH):
    23         @echo "trying $*"
    2427        @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi
    25         $(CC) -o $@ $^ $(LDFLAGS)
     28        $(CC) $(FULL_CFLAGS) -o $@ $^ $(FULL_LDFLAGS)
    2629        @echo "compiled $*"
    2730        @echo ""
Note: See TracChangeset for help on using the changeset viewer.