IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2005, 4:57:00 PM (21 years ago)
Author:
eugene
Message:

moving to autocode on imregister

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/Makefile

    r3593 r3609  
    1313DESTMAN =       $(LMAN)
    1414
    15 INCS    =       -I$(LINC)
    16 CFLAGS  =       -Wunused -o $*.$(ARCH).o $(INCS)
    17 LFLAGS  =       -c $(INCS)
     15CFLAGS  =       -I$(LINC) -D$(ARCH)
    1816
    1917default: install
     
    2119install: $(DESTLIB)/libohana.a
    2220
    23 ohana: $(LIB)/libohana.$(ARCH).a
     21libohana: $(LIB)/libohana.$(ARCH).a
    2422
    25 HOBJ = \
     23INC1 = \
    2624$(DESTINC)/Xohana.h  \
    27 $(DESTINC)/ohana.h \
     25$(DESTINC)/ohana.h
     26
     27INC2 = \
    2828$(DESTINC)/loneos.h \
    2929$(DESTINC)/elixir.h \
     
    3131$(DESTINC)/dvo.h
    3232
    33 LOBJ = \
     33OBJ1 = \
    3434$(SRC)/version.$(ARCH).o         \
    3535$(SRC)/string.$(ARCH).o          \
     
    3737$(SRC)/glockfile.$(ARCH).o       \
    3838$(SRC)/config.$(ARCH).o          \
     39$(SRC)/Fseek.$(ARCH).o           
     40
     41OBJ2 = \
    3942$(SRC)/coordops.$(ARCH).o        \
    4043$(SRC)/Fread.$(ARCH).o           \
    41 $(SRC)/Fseek.$(ARCH).o           \
    4244$(SRC)/LoadPhotcodes.$(ARCH).o   \
    4345$(SRC)/photfits.$(ARCH).o        \
     
    4850
    4951AOBJ = \
     52$(ASRC)/regimage.$(ARCH).o \
    5053$(ASRC)/detreg.$(ARCH).o \
    5154$(ASRC)/photreg.$(ARCH).o \
     
    5558$(ASRC)/spectrum-ascii.$(ARCH).o
    5659
    57 autocode:
     60autocode: $(INC1)
    5861        cd $(AUTO) && make install
     62
     63$(OBJ1): $(INC1)
     64$(OBJ2): $(INC2)
     65$(AOBJ): autocode
    5966
    6067$(DESTLIB)/libohana.a: $(LIB)/libohana.$(ARCH).a
     
    6370        cp $(LIB)/libohana.$(ARCH).a $(DESTLIB)/libohana.a
    6471
    65 $(LIB)/libohana.$(ARCH).a: autocode $(HOBJ) $(LOBJ)
     72$(LIB)/libohana.$(ARCH).a: autocode $(OBJ1) $(AOBJ) $(OBJ2)
    6673        @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi
    6774        rm -f $(LIB)/libohana.$(ARCH).a
    68         ar rcv $(LIB)/libohana.$(ARCH).a $(LOBJ) $(AOBJ)
     75        ar rcv $(LIB)/libohana.$(ARCH).a $(OBJ1) $(AOBJ) $(OBJ2)
    6976        $(RANLIB) $(LIB)/libohana.$(ARCH).a
    70 
    71 $(LOBJ): $(DESTINC)/ohana.h $(DESTINC)/loneos.h $(DESTINC)/elixir.h $(DESTINC)/panstarrs.h
    7277
    7378$(DESTINC)/%: $(INC)/%
     
    8893
    8994.c.$(ARCH).o:
    90         $(CC) $(CFLAGS) -c $<
     95        $(CC) $(CFLAGS) -c $*.c -o $@
     96        @echo done with $*.o
Note: See TracChangeset for help on using the changeset viewer.