Changeset 447
- Timestamp:
- Apr 19, 2004, 9:42:43 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/Makefile (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/Makefile
r432 r447 1 ################################################################# 1 ############################################################################### 2 2 ## 3 ## Makefile: sysUtils 3 4 ## 4 ################################################################# 5 ## $Revision: 1.3 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-04-19 19:42:43 $ 7 ## 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii 9 ############################################################################### 10 11 # Define variable prefix to the top level project - psLib 12 # This is necessary for definition is Makefile.Globals uses prefix 13 5 14 ifndef prefix 6 15 export prefix=$(shell cd ../..;pwd) 7 16 endif 8 17 9 TARGET = libpsSysUtils.a 18 # Define the two targets to be built 10 19 11 all: $(TARGET) 20 TARGET_STATIC = libpslib.a 21 TARGET_DYNAMIC = libpslib.$(DLL) 22 23 # Include the make global definitions for the project 12 24 13 25 include ../Makefile.Globals 14 26 15 SRC_OBJS = psMemory.o psError.o psAbort.o 27 # Set CFLAGS used by the implicit rule to compile .c 16 28 17 libpsSysUtils.a: $(SRC_OBJS) 18 $(AR) -r libpsSysUtils.a $(SRC_OBJS) 29 CFLAGS := $(CFLAGS_RELOC) 19 30 20 install: $(TARGET) 31 # Define the source objects 32 33 SRC_OBJS = psMemory.o \ 34 psError.o \ 35 psAbort.o \ 36 psString.o 37 38 # Define PHONY target "all" which will make all the necessary items 39 40 all: $(TARGET_STATIC) $(TARGET_DYNAMIC) 41 42 # Rule to make static library 43 44 libpslib.a: $(SRC_OBJS) 45 # The ar option -r is to add/replace object and -s is to create 46 # a symbol table in the archive 47 $(AR) rcs ../$@ $(SRC_OBJS) 48 49 # Rule to make dynamic library 50 51 libpslib.$(DLL): $(SRC_OBJS) 52 $(CC) $(LDFLAGS_DLL) $(SRC_OBJS) -o ../$@ 53 54 # Define PHONY target "install" which will install necessary files 55 56 install: $(TARGET_STATIC) $(TARGET_DYNAMIC) 21 57 install *.h $(includedir) 22 install $(TARGET) $(libexecdir) 58 install ../$(TARGET_STATIC) $(libexecdir) 59 install ../$(TARGET_DYNAMIC) $(libexecdir) 60 61 # Define PHONY target "distclean" which will cleanup the distribution 23 62 24 63 distclean: clean 25 $(RM) $(TARGET) 64 $(RM) ../$(TARGET_STATIC) 65 $(RM) ../$(TARGET_DYNAMIC) 66 $(RM) $(libexecdir)/$(TARGET_STATIC) 67 $(RM) $(libexecdir)/$(TARGET_DYNAMIC) 68 69 # Define PHONY target "clean" which will cleanup the development area 26 70 27 71 clean: 28 @echo " Deleting intermediate files for ' utilities - $(CFG)'"72 @echo " Deleting intermediate files for 'sysUtils'" 29 73 $(RM) $(SRC_OBJS) *.lint 30 74
Note:
See TracChangeset
for help on using the changeset viewer.
