Changeset 4747 for trunk/Ohana/src/opihi/cmd.astro/Makefile
- Timestamp:
- Aug 10, 2005, 10:09:43 AM (21 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
cmd.astro/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/cmd.astro/Makefile
r4746 r4747 21 21 # astro user commands ######################## 22 22 23 astrocmd= \23 srcs = \ 24 24 $(SDIR)/init.$(ARCH).o \ 25 25 $(SDIR)/biassub.$(ARCH).o \ … … 50 50 $(SDIR)/spec.$(ARCH).o \ 51 51 $(SDIR)/star.$(ARCH).o \ 52 $(SDIR)/transform.$(ARCH).o 53 54 imfitstuff = \ 52 $(SDIR)/transform.$(ARCH).o \ 55 53 $(SDIR)/imsub.$(ARCH).o \ 56 54 $(SDIR)/imfit.$(ARCH).o \ … … 65 63 $(SDIR)/imfit-qrgauss.$(ARCH).o 66 64 67 libastrocmd: $(DESTLIB)/libastrocmd.a 65 # dependancy rules for include files ######################## 66 incs = \ 67 $(INC)/opihi.h \ 68 $(INC)/external.h \ 69 $(INC)/shell.h \ 70 $(INC)/dvomath.h \ 71 $(INC)/convert.h \ 72 $(INC)/display.h 68 73 69 $(LIB)/libastrocmd.$(ARCH).a: $(astrocmd) $(imfitstuff) 70 71 # utilities ################################################# 72 $(BIN)/%.$(ARCH): 73 @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi 74 $(CC) $^ -o $@ $(LFLAGS) $(LIBS) 75 @echo "compiled $*" 76 @echo "" 77 78 $(DESTBIN)/%: $(BIN)/%.$(ARCH) 79 @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi 80 rm -f $(DESTBIN)/$* 81 cp $(BIN)/$*.$(ARCH) $(DESTBIN)/$* 82 @echo "installed $*" 83 @echo "" 84 85 $(LIB)/%.$(ARCH).a: 86 @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi 87 rm -f $@ 88 ar rcv $@ $^ 89 $(RANLIB) $@ 90 @echo "compiled library $*" 91 @echo "" 92 93 $(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a 94 @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi 95 @echo "" 96 rm -f $@ 97 cp $^ $@ 98 99 lib%.clean: 100 rm -f $(LIB)/lib$*.$(ARCH).a 101 rm -f $($*) 102 @echo "" 103 104 %.clean: 105 rm -f $(BIN)/$*.$(ARCH) 106 @echo "" 107 108 %.$(ARCH).o : %.c 109 $(CC) $(CFLAGS) -c $*.c -o $@ 110 111 clean: 112 rm -f $(BIN)/*.$(ARCH) 113 rm -f $(LIB)/*.$(ARCH).a 114 rm -f `find . -name "*.o"` 115 rm -f `find . -name "*~"` 116 rm -f `find . -name "#*"` 117 118 dist: clean 119 rm -f $(BIN)/* 120 rm -f $(LIB)/* 74 libastrocmd: $(DESTLIB)/libastrocmd.a 75 $(DESTLIB)/libastrocmd.a: $(LIB)/libastrocmd.$(ARCH).a 76 $(LIB)/libastrocmd.$(ARCH).a: $(srcs) 77 $(srcs): $(incs) 121 78 122 79 uninstall: 123 rm -f $(DESTLIB)/libcmdastro.a 80 rm -f $(DESTLIB)/libastrocmd.a 81 82 include ../Makefile.Common
Note:
See TracChangeset
for help on using the changeset viewer.
