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