Changeset 657 for trunk/psLib/src/dataManip/Makefile
- Timestamp:
- May 12, 2004, 8:06:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/Makefile
r656 r657 3 3 endif 4 4 5 # Define the two targets to be built 6 7 TARGET_STATIC = libpsDataManip.a 8 9 # Include the make global definitions for the project 10 5 TARGET_STATIC = libpslib.a 11 6 include ../Makefile.Globals 12 13 # Set CFLAGS used by the implicit rule to compile .c 14 15 CFLAGS := $(CFLAGS_RELOC) 16 17 # Define the source objects 18 7 CFLAGS := $(CFLAGS_RELOC) -I. 19 8 SRC_OBJS = psStats.o 20 21 # Define PHONY target "all" which will make all the necessary items22 9 23 10 all: $(TARGET_STATIC) 24 11 25 # Rule to make static library 12 %.o: %.c 13 @echo " Compiling $<. " 14 $(CC) $(CFLAGS) -I../../include -c $< -o $@ 26 15 27 libpslib.a: $(SRC_OBJS)16 libpslib.a: $(SRC_OBJS) 28 17 # The ar option -r is to add/replace object and -s is to create 29 18 # a symbol table in the archive … … 31 20 32 21 # Define PHONY target "install" which will install necessary files 33 34 22 install: $(TARGET_STATIC) 35 23 install *.h $(includedir) 36 24 37 25 # Define PHONY target "distclean" which will cleanup the distribution 38 39 26 distclean: clean 40 27 $(RM) ../$(TARGET_STATIC) 41 28 42 29 # Define PHONY target "clean" which will cleanup the development area 43 44 30 clean: 45 31 @echo " Deleting intermediate files for 'sysUtils'" … … 50 36 51 37 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 %.o: %.c72 @echo " Compiling $<. "73 $(CC) $(CFLAGS) -I../../include -c $< -o $@74 75 libpsDataManip.a: $(SRC_OBJS)76 # $(AR) rcs libpsDataManip.a $(SRC_OBJS)77 $(AR) rcs ../$@ $(SRC_OBJS)78 79 install: $(TARGET)80 install *.h $(includedir)81 82 distclean: clean83 $(RM) $(TARGET)84 85 clean:86 @echo " Deleting intermediate files for 'utilities - $(CFG)'"87 $(RM) $(SRC_OBJS) *.lint88 89 %.lint: %.c90 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
Note:
See TracChangeset
for help on using the changeset viewer.
