Changeset 1338 for trunk/psLib/src/astronomy/Makefile
- Timestamp:
- Jul 29, 2004, 11:43:11 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/Makefile
r1315 r1338 12 12 psCoord.o 13 13 14 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 15 14 16 all: $(TARGET_STATIC) 15 17 16 18 # Rule to make static library 17 19 18 libpslib.a: $( SRC_OBJS)20 libpslib.a: $(OBJS) 19 21 # The ar option -r is to add/replace object and -s is to create 20 22 # a symbol table in the archive 21 $(AR) rcs ../$@ $( SRC_OBJS)23 $(AR) rcs ../$@ $(OBJS) 22 24 23 25 # Define PHONY target "install" which will install necessary files … … 32 34 clean: 33 35 @echo " Deleting intermediate files for 'astronomy'" 34 $(RM) $(SRC_OBJS) *.lint $(SRC_OBJS:.o=.i) 36 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 37 38 cleandep: 39 $(RM) $(OBJS:.o=.d) 35 40 36 41 %.lint: %.c … … 40 45 $(CC) -E $(CFLAGS) -o $@ $< 41 46 42 %.o: %.i 47 makedir/%.o: %.c 43 48 $(CC) -c $(CFLAGS) -o $@ $< 44 49 45 %.d: %.c50 makedir/%.d: %.c 46 51 $(CC) -MM $(CFLAGS) $< > $@.tmp 47 sed 's /\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@52 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 48 53 $(RM) -f $@.tmp 49 54 50 include $( SRC_OBJS:.o=.d)55 include $(OBJS:.o=.d)
Note:
See TracChangeset
for help on using the changeset viewer.
