Changeset 4747 for trunk/Ohana/src/opihi/cmd.data
- Timestamp:
- Aug 10, 2005, 10:09:43 AM (21 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
cmd.data/Makefile (modified) (2 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/cmd.data/Makefile
r4746 r4747 20 20 21 21 # data user commands ######################## 22 datacmd= \22 srcs = \ 23 23 $(SDIR)/init.$(ARCH).o \ 24 24 $(SDIR)/accum.$(ARCH).o \ … … 124 124 $(SDIR)/zplot.$(ARCH).o 125 125 126 libdatacmd: $(DESTLIB)/libdatacmd.a 126 # dependancy rules for include files ######################## 127 incs = \ 128 $(INC)/opihi.h \ 129 $(INC)/external.h \ 130 $(INC)/shell.h \ 131 $(INC)/dvomath.h \ 132 $(INC)/convert.h \ 133 $(INC)/display.h 127 134 128 $(LIB)/libdatacmd.$(ARCH).a: $(datacmd) 129 130 # utilities ################################################# 131 $(BIN)/%.$(ARCH): 132 @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi 133 $(CC) $^ -o $@ $(LFLAGS) $(LIBS) 134 @echo "compiled $*" 135 @echo "" 136 137 $(DESTBIN)/%: $(BIN)/%.$(ARCH) 138 @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi 139 rm -f $(DESTBIN)/$* 140 cp $(BIN)/$*.$(ARCH) $(DESTBIN)/$* 141 @echo "installed $*" 142 @echo "" 143 144 $(LIB)/%.$(ARCH).a: 145 @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi 146 rm -f $@ 147 ar rcv $@ $^ 148 $(RANLIB) $@ 149 @echo "compiled library $*" 150 @echo "" 151 152 $(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a 153 @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi 154 @echo "" 155 rm -f $@ 156 cp $^ $@ 157 158 lib%.clean: 159 rm -f $(LIB)/lib$*.$(ARCH).a 160 rm -f $($*) 161 @echo "" 162 163 %.clean: 164 rm -f $(BIN)/$*.$(ARCH) 165 @echo "" 166 167 %.$(ARCH).o : %.c 168 $(CC) $(CFLAGS) -c $*.c -o $@ 169 170 clean: 171 rm -f $(BIN)/*.$(ARCH) 172 rm -f $(LIB)/*.$(ARCH).a 173 rm -f `find . -name "*.o"` 174 rm -f `find . -name "*~"` 175 rm -f `find . -name "#*"` 176 177 dist: clean 178 rm -f $(BIN)/* 179 rm -f $(LIB)/* 135 libdatacmd: $(DESTLIB)/libdatacmd.a 136 $(DESTLIB)/libdatacmd.a: $(LIB)/libdatacmd.$(ARCH).a 137 $(LIB)/libdatacmd.$(ARCH).a: $(srcs) 138 $(srcs): $(incs) 180 139 181 140 uninstall: 182 rm -f $(DESTLIB)/libcmddata.a 141 rm -f $(DESTLIB)/libdatacmd.a 142 143 include ../Makefile.Common
Note:
See TracChangeset
for help on using the changeset viewer.
