Changeset 10342 for trunk/Ohana/src/gastro/Makefile
- Timestamp:
- Nov 30, 2006, 5:05:29 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/gastro/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/gastro/Makefile
r10305 r10342 4 4 5 5 include ../../Configure 6 7 6 HOME = $(ROOT)/src/gastro 8 7 BIN = $(HOME)/bin 9 8 LIB = $(HOME)/lib 10 INC = $(HOME)/include11 9 SRC = $(HOME)/src 12 10 MAN = $(HOME)/doc 13 DESTBIN = $(BINDIR) 14 DESTLIB = $(LIBDIR) 15 DESTINC = $(INCDIR) 16 DESTMAN = $(MANDIR) 11 INC = $(HOME)/include 12 include ../../Makefile.Common 17 13 18 # 19 CFLAGS = -I$(INC) -I$(INCDIR) $(INCDIRS) 20 LFLAGS = -L$(LIB) -L$(LIBDIR) $(LIBDIRS) -ldvo -lFITS -lohana $(LIBFLAGS) 14 LDFLAGS := -ldvo -lFITS -lohana $(LDFLAGS) 21 15 22 # ----------------------- 23 OBJ = \ 16 gastro: $(BIN)/gastro.$(ARCH) 17 install: $(DESTBIN)/gastro 18 19 GASTRO = \ 24 20 $(SRC)/gastro.$(ARCH).o \ 25 21 $(SRC)/gstars.$(ARCH).o \ … … 42 38 $(SRC)/misc.$(ARCH).o 43 39 44 #$(SRC)/gregions2.$(ARCH).o \ 45 #$(SRC)/gcatalog.$(ARCH).o \ 46 #$(SRC)/gptolemy.$(ARCH).o \ 47 #$(SRC)/g2mass.$(ARCH).o \ 40 $(GASTRO): $(INC)/gastro.h 41 $(BIN)/gastro.$(ARCH): $(GASTRO) 48 42 49 gastro: $(BIN)/gastro.$(ARCH)50 51 $(BIN)/gastro.$(ARCH): $(OBJ)52 53 $(OBJ): $(INC)/gastro.h54 55 INSTALL = gastro56 57 # generic dependancy rules for binary code #########################58 .PRECIOUS: %.$(ARCH).o59 .PRECIOUS: $(BIN)/%.$(ARCH)60 61 %.$(ARCH).o : %.c62 $(CC) $(CFLAGS) -c $< -o $@63 64 $(BIN)/%.$(ARCH) : $(SRC)/%.$(ARCH).o65 @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi66 $(CC) $^ -o $@ $(LFLAGS)67 68 $(DESTBIN)/%: $(BIN)/%.$(ARCH)69 @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi70 rm -f $(DESTBIN)/$*71 cp $(BIN)/$*.$(ARCH) $(DESTBIN)/$*72 73 $(INSTALL) $(DEVEL): % : $(BIN)/%.$(ARCH)74 75 %.clean :76 rm -f $(BIN)/$*.$(ARCH)77 78 %.install:79 make $(DESTBIN)/$*80 81 # utilities #################################################82 83 install:84 for i in $(INSTALL); do make $$i.install; done85 86 clean:87 rm -f $(BIN)/*.$(ARCH)88 rm -f `find . -name "*.o"`89 rm -f `find . -name "*~"`90 rm -f `find . -name "#*"`
Note:
See TracChangeset
for help on using the changeset viewer.
