IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 10, 2005, 10:09:43 AM (21 years ago)
Author:
eugene
Message:

updating Makefiles

Location:
trunk/Ohana/src/opihi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi

    • Property svn:ignore set to
      lib
      bin
  • trunk/Ohana/src/opihi/cmd.astro/Makefile

    r4746 r4747  
    2121# astro user commands ########################
    2222
    23 astrocmd = \
     23srcs = \
    2424$(SDIR)/init.$(ARCH).o             \
    2525$(SDIR)/biassub.$(ARCH).o          \
     
    5050$(SDIR)/spec.$(ARCH).o             \
    5151$(SDIR)/star.$(ARCH).o             \
    52 $(SDIR)/transform.$(ARCH).o
    53 
    54 imfitstuff = \
     52$(SDIR)/transform.$(ARCH).o        \
    5553$(SDIR)/imsub.$(ARCH).o            \
    5654$(SDIR)/imfit.$(ARCH).o            \
     
    6563$(SDIR)/imfit-qrgauss.$(ARCH).o   
    6664
    67 libastrocmd:    $(DESTLIB)/libastrocmd.a
     65# dependancy rules for include files ########################
     66incs = \
     67$(INC)/opihi.h \
     68$(INC)/external.h \
     69$(INC)/shell.h \
     70$(INC)/dvomath.h \
     71$(INC)/convert.h \
     72$(INC)/display.h
    6873
    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)/*
     74libastrocmd: $(DESTLIB)/libastrocmd.a
     75$(DESTLIB)/libastrocmd.a: $(LIB)/libastrocmd.$(ARCH).a
     76$(LIB)/libastrocmd.$(ARCH).a: $(srcs)
     77$(srcs): $(incs)
    12178
    12279uninstall:
    123         rm -f $(DESTLIB)/libcmdastro.a
     80        rm -f $(DESTLIB)/libastrocmd.a
     81
     82include ../Makefile.Common
Note: See TracChangeset for help on using the changeset viewer.