Changeset 10342 for trunk/Ohana/src/gastro2/Makefile
- Timestamp:
- Nov 30, 2006, 5:05:29 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/gastro2/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/gastro2/Makefile
r10305 r10342 1 default: gastro2 2 help: 3 @echo "make options: gastro2 (default)" 4 1 5 include ../../Configure 2 6 HOME = $(ROOT)/src/gastro2 3 PROGRAM = gastro24 5 7 BIN = $(HOME)/bin 6 8 LIB = $(HOME)/lib 7 INC = $(HOME)/include8 9 SRC = $(HOME)/src 9 10 MAN = $(HOME)/doc 10 DESTBIN = $(BINDIR) 11 DESTLIB = $(LIBDIR) 12 DESTINC = $(INCDIR) 13 DESTMAN = $(MANDIR) 11 INC = $(HOME)/include 12 include ../../Makefile.Common 14 13 15 # 16 CFLAGS = -I$(INC) -I$(INCDIR) $(INCDIRS) 17 LFLAGS = -L$(LIB) -L$(LIBDIR) $(LIBDIRS) -ldvo -lFITS -lohana $(LIBFLAGS) 14 LDFLAGS := -ldvo -lFITS -lohana $(LDFLAGS) 18 15 19 2MASS = \ 16 gastro2: $(BIN)/gastro2.$(ARCH) 17 coordtest: $(BIN)/coordtest.$(ARCH) 18 extr2mass: $(BIN)/extr2mass.$(ARCH) 19 install: $(DESTBIN)/gastro2 20 21 EXTR2MASS = \ 20 22 $(SRC)/extr2mass.$(ARCH).o \ 21 23 $(SRC)/ConfigInit.$(ARCH).o \ … … 27 29 $(SRC)/polyfit.$(ARCH).o 28 30 29 GASTRO = \31 GASTRO2 = \ 30 32 $(SRC)/plots.$(ARCH).o \ 31 33 $(SRC)/gheader2.$(ARCH).o \ … … 54 56 $(SRC)/rtext.$(ARCH).o 55 57 56 #$(SRC)/gptolemy2.$(ARCH).o \ 57 #$(SRC)/gregions2.$(ARCH).o \ 58 $(GASTRO2): $(INC)/gastro2.h 59 $(COORDTEST): $(INC)/gastro2.h 60 $(EXTR2MASS): $(INC)/gastro2.h 58 61 59 OBJ = $(GASTRO) 60 61 default: $(PROGRAM) 62 63 all: $(PROGRAM) extr2mass 64 65 $(GASTRO): $(INC)/gastro2.h 66 67 coordtest: $(COORDTEST) 68 $(CC) $(COORDTEST) -o $(BIN)/coordtest.linux $(LFLAGS) 69 70 # dependancy rules for binary code ########################## 71 $(PROGRAM): $(BIN)/$(PROGRAM).$(ARCH) 72 73 $(BIN)/$(PROGRAM).$(ARCH): $(OBJ) 74 @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi 75 $(CC) $(OBJ) -o $(BIN)/$(PROGRAM).$(ARCH) $(LFLAGS) 76 77 install: $(DESTBIN)/$(PROGRAM) 78 79 $(DESTBIN)/$(PROGRAM): $(BIN)/$(PROGRAM).$(ARCH) 80 @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi 81 rm -f $(DESTBIN)/$(PROGRAM) 82 cp $(BIN)/$(PROGRAM).$(ARCH) $(DESTBIN)/$(PROGRAM) 83 84 # utilities ################################################# 85 clean: 86 rm -f $(BIN)/*.$(ARCH) 87 rm -f `find . -name "*.o"` 88 rm -f `find . -name "*~"` 89 rm -f `find . -name "#*"` 90 91 .PRECIOUS: %.$(ARCH).o 92 .PRECIOUS: $(BIN)/%.$(ARCH) 93 94 %.$(ARCH).o : %.c 95 $(CC) $(CFLAGS) -c $< -o $@ 62 $(BIN)/gastro2.$(ARCH): $(GASTRO2) 63 $(BIN)/coordtest.$(ARCH): $(COORDTEST) 64 $(BIN)/extr2mass.$(ARCH): $(EXTR2MASS)
Note:
See TracChangeset
for help on using the changeset viewer.
