Changeset 4747 for trunk/Ohana/src/opihi/lib.shell/Makefile
- Timestamp:
- Aug 10, 2005, 10:09:43 AM (21 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
lib.shell/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi
-
Property svn:ignore
set to
lib
bin
-
Property svn:ignore
set to
-
trunk/Ohana/src/opihi/lib.shell/Makefile
r4746 r4747 5 5 LIB = $(HOME)/lib 6 6 INC = $(HOME)/include 7 MDIR = $(HOME)/misc8 7 SDIR = $(HOME)/lib.shell 9 8 # … … 21 20 22 21 # opihi shell functions (libopihi) ######################## 23 24 22 shell = \ 25 23 $(SDIR)/ConfigInit.$(ARCH).o \ … … 58 56 $(SDIR)/opihi.$(ARCH).o 59 57 60 libshell: $(DESTLIB)/libshell.a 58 # dependancy rules for include files ######################## 59 incs = \ 60 $(INC)/opihi.h \ 61 $(INC)/external.h \ 62 $(INC)/shell.h \ 63 $(INC)/dvomath.h \ 64 $(INC)/convert.h \ 65 $(INC)/display.h 61 66 62 $(LIB)/libshell.$(ARCH).a: $(shell) 63 64 # dependancy rules for include files ######################## 65 baseinc = $(INC)/external.h $(INC)/shell.h $(INC)/dvomath.h $(INC)/convert.h $(INC)/display.h 66 67 $(shell) : $(INC)/opihi.h $(baseinc) 68 69 # utilities ################################################# 70 $(BIN)/%.$(ARCH): 71 @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi 72 $(CC) $^ -o $@ $(LFLAGS) $(LIBS) 73 @echo "compiled $*" 74 @echo "" 75 76 $(DESTBIN)/%: $(BIN)/%.$(ARCH) 77 @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi 78 rm -f $(DESTBIN)/$* 79 cp $(BIN)/$*.$(ARCH) $(DESTBIN)/$* 80 @echo "installed $*" 81 @echo "" 82 83 $(LIB)/%.$(ARCH).a: 84 @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi 85 rm -f $@ 86 ar rcv $@ $^ 87 $(RANLIB) $@ 88 @echo "compiled library $*" 89 @echo "" 90 91 $(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a 92 @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi 93 @echo "" 94 rm -f $@ 95 cp $^ $@ 96 97 lib%.clean: 98 rm -f $(LIB)/lib$*.$(ARCH).a 99 rm -f $($*) 100 @echo "" 101 102 %.clean: 103 rm -f $(BIN)/$*.$(ARCH) 104 @echo "" 105 106 %.$(ARCH).o : %.c 107 $(CC) $(CFLAGS) -c $*.c -o $@ 108 109 clean: 110 rm -f $(BIN)/*.$(ARCH) 111 rm -f $(LIB)/*.$(ARCH).a 112 rm -f `find . -name "*.o"` 113 rm -f `find . -name "*~"` 114 rm -f `find . -name "#*"` 115 116 dist: clean 117 rm -f $(BIN)/* 118 rm -f $(LIB)/* 67 libshell: $(DESTLIB)/libshell.a 68 $(DESTLIB)/libshell.a: $(LIB)/libshell.$(ARCH).a 69 $(LIB)/libshell.$(ARCH).a: $(shell) 70 $(shell) : $(incs) 119 71 120 72 uninstall: 121 73 rm -f $(DESTLIB)/libshell.a 74 75 include ../Makefile.Common
Note:
See TracChangeset
for help on using the changeset viewer.
