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/pcontrol/Makefile

    r4714 r4747  
    11include ../../../Configure
    2 
    3 default: all
    42
    53HOME    =       $(ROOT)/src/opihi
     
    6664$(DESTLIB)/libdata.a
    6765
    68 all: pcontrol
    69 
    7066pcontrol: $(BIN)/pcontrol.$(ARCH)
    71         @echo done
    7267
    7368$(BIN)/pcontrol.$(ARCH) : $(pcontrol) $(libs)
     
    7772help: clean-help cmd.basic.help pcontrol.help
    7873
    79 # utilities #################################################
    80 $(BIN)/%.$(ARCH):
    81         @if [ ! -d $(BIN) ]; then mkdir -p $(BIN); fi
    82         $(CC) $^ -o $@ $(LFLAGS) $(LIBS)
    83         @echo "compiled $*"
    84         @echo ""
     74.PHONY: pcontrol
    8575
    86 $(DESTBIN)/%: $(BIN)/%.$(ARCH)
    87         @if [ ! -d $(DESTBIN) ]; then mkdir -p $(DESTBIN); fi
    88         rm -f $(DESTBIN)/$*
    89         cp $(BIN)/$*.$(ARCH) $(DESTBIN)/$*
    90         @echo "installed $*"
    91         @echo ""
    92 
    93 $(LIB)/%.$(ARCH).a:
    94         @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi
    95         rm -f $@
    96         ar rcv $@ $^
    97         $(RANLIB) $@
    98         @echo "compiled library $*"
    99         @echo ""
    100 
    101 $(DESTLIB)/%.a: $(LIB)/%.$(ARCH).a
    102         @if [ ! -d $(DESTLIB) ]; then mkdir -p $(DESTLIB); fi
    103         @echo ""
    104         rm -f $@
    105         cp $^ $@
    106 
    107 clean:
    108         rm -f $(BIN)/*.$(ARCH)
    109         rm -f $(LIB)/*.$(ARCH).a
    110         rm -f `find . -name "*.o"`
    111         rm -f `find . -name "*~"`
    112         rm -f `find . -name "#*"`
    113 
    114 clean-help:
    115         @if [ ! -d $(DESTHLP) ]; then mkdir -p $(DESTHLP); fi
    116         rm -f $(DESTHLP)/*
    117 
    118 dist: clean
    119         rm -f $(BIN)/*
    120         rm -f $(LIB)/*
    121 
    122 lib%.clean:
    123         rm -f $(LIB)/lib$*.$(ARCH).a
    124         rm -f $($*)
    125         @echo ""
    126 
    127 %.clean:
    128         rm -f $(BIN)/$*.$(ARCH)
    129         @echo ""
    130 
    131 %.$(ARCH).o : %.c
    132         $(CC) $(CFLAGS) -c $*.c -o $@
    133 
    134 %.help:
    135         rm -f $(HOME)/$*/help/*~
    136         rm -f $(HOME)/$*/help/#*
    137         for i in `find $(HOME)/$*/help -type f -maxdepth 1`; do cp -f $$i $(DESTHLP); done
     76include ../Makefile.Common
Note: See TracChangeset for help on using the changeset viewer.