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/lib.shell/Makefile

    r4746 r4747  
    55LIB     =       $(HOME)/lib
    66INC     =       $(HOME)/include
    7 MDIR    =       $(HOME)/misc
    87SDIR    =       $(HOME)/lib.shell
    98#
     
    2120
    2221# opihi shell functions (libopihi) ########################
    23 
    2422shell = \
    2523$(SDIR)/ConfigInit.$(ARCH).o            \
     
    5856$(SDIR)/opihi.$(ARCH).o
    5957
    60 libshell:    $(DESTLIB)/libshell.a
     58# dependancy rules for include files ########################
     59incs = \
     60$(INC)/opihi.h \
     61$(INC)/external.h \
     62$(INC)/shell.h \
     63$(INC)/dvomath.h \
     64$(INC)/convert.h \
     65$(INC)/display.h
    6166
    62 $(LIB)/libshell.$(ARCH).a:      $(shell)
    63 
    64 # dependancy rules for include files ########################
    65 baseinc = $(INC)/external.h $(INC)/shell.h $(INC)/dvomath.h $(INC)/convert.h $(INC)/display.h
    66 
    67 $(shell)         : $(INC)/opihi.h $(baseinc)
    68 
    69 # utilities #################################################
    70 $(BIN)/%.$(ARCH):
    71         @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi
    72         $(CC) $^ -o $@ $(LFLAGS) $(LIBS)
    73         @echo "compiled $*"
    74         @echo ""
    75 
    76 $(DESTBIN)/%: $(BIN)/%.$(ARCH)
    77         @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi
    78         rm -f $(DESTBIN)/$*
    79         cp $(BIN)/$*.$(ARCH) $(DESTBIN)/$*
    80         @echo "installed $*"
    81         @echo ""
    82 
    83 $(LIB)/%.$(ARCH).a:
    84         @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi
    85         rm -f $@
    86         ar rcv $@ $^
    87         $(RANLIB) $@
    88         @echo "compiled library $*"
    89         @echo ""
    90 
    91 $(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a
    92         @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi
    93         @echo ""
    94         rm -f $@
    95         cp $^ $@
    96 
    97 lib%.clean:
    98         rm -f $(LIB)/lib$*.$(ARCH).a
    99         rm -f $($*)
    100         @echo ""
    101 
    102 %.clean:
    103         rm -f $(BIN)/$*.$(ARCH)
    104         @echo ""
    105 
    106 %.$(ARCH).o : %.c
    107         $(CC) $(CFLAGS) -c $*.c -o $@
    108 
    109 clean:
    110         rm -f $(BIN)/*.$(ARCH)
    111         rm -f $(LIB)/*.$(ARCH).a
    112         rm -f `find . -name "*.o"`
    113         rm -f `find . -name "*~"`
    114         rm -f `find . -name "#*"`
    115 
    116 dist: clean
    117         rm -f $(BIN)/*
    118         rm -f $(LIB)/*
     67libshell: $(DESTLIB)/libshell.a
     68$(DESTLIB)/libshell.a: $(LIB)/libshell.$(ARCH).a
     69$(LIB)/libshell.$(ARCH).a: $(shell)
     70$(shell) : $(incs)
    11971
    12072uninstall:
    12173        rm -f $(DESTLIB)/libshell.a
     74
     75include ../Makefile.Common
Note: See TracChangeset for help on using the changeset viewer.