Changeset 11888 for trunk/Ohana/Makefile.Common
- Timestamp:
- Feb 19, 2007, 11:05:00 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/Makefile.Common (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/Makefile.Common
r11750 r11888 1 1 # this file must be added to the makefile *after* LIB,BIN, etc are defined 2 2 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 4 7 5 CFLAGS = -I$(INC) -I$(DESTINC) $(INCDIRS) -D$(ARCH) 6 LDFLAGS = -L$(LIB) -L$(DESTLIB) $(LIBDIRS) $(LIBFLAGS) 8 BASE_CFLAGS = $(CFLAGS) 9 BASE_CPPFLAGS = $(CPPFLAGS) -I$(INC) -I$(DESTINC) $(INCDIRS) -D$(ARCH) 10 BASE_LDFLAGS = $(LDFLAGS) -L$(LIB) -L$(DESTLIB) $(LIBDIRS) $(LIBFLAGS) 7 11 8 12 .PRECIOUS: %.$(ARCH).o … … 18 22 19 23 %.$(ARCH).o : %.c 20 $(CC) $( CFLAGS) -c $< -o $@24 $(CC) $(FULL_CFLAGS) $(FULL_CPPFLAGS) -c $< -o $@ 21 25 22 26 $(BIN)/%.$(ARCH): 23 @echo "trying $*"24 27 @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi 25 $(CC) -o $@ $^ $(LDFLAGS)28 $(CC) $(FULL_CFLAGS) -o $@ $^ $(FULL_LDFLAGS) 26 29 @echo "compiled $*" 27 30 @echo ""
Note:
See TracChangeset
for help on using the changeset viewer.
