Changeset 15464


Ignore:
Timestamp:
2008-05-15T11:47:14+12:00 (16 years ago)
Author:
mdewsnip
Message:

Big tidy up of Makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/lib/Makefile.in

    r15462 r15464  
    2525###########################################################################
    2626
     27GSDL_DIR = ..
     28INDEXERS_DIR = $(GSDL_DIR)/indexers
    2729
    2830AR = ar
    29 CC = @CC@
    3031CPP = @CXX@
    31 CCFLAGS = @CFLAGS@
     32CPPFLAGS = @CXXFLAGS@
    3233DEFS = @DEFS@
    33 INCLUDES = -I../indexers/mg/lib -I..
     34INCLUDES = -I$(GSDL_DIR) -I$(INDEXERS_DIR)/mg/lib
    3435RANLIB = @RANLIB@
    3536
    36 COMPILE = $(CC) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
     37
    3738CPPCOMPILE = $(CPP) -c $(CCFLAGS) $(DEFS) $(INCLUDES)
    3839
     40
    3941.SUFFIXES:
    40 .SUFFIXES: .c .o
    41 .c.o:
    42     $(COMPILE) $<
    43 
    4442.SUFFIXES: .cpp .o
    4543.cpp.o:
     
    4745
    4846
    49 HEADERS = \
    50   cfgread.h        cnfgable.h       cnfgator.h       dbclass.h \
    51   display.h        fileutil.h       gdbmclass.h      gsdlsitecfg.h \
    52   gsdltimes.h      gsdltools.h      gsdlunicode.h    infodbclass.h \
    53   md5.h            OIDtools.h       phrases.h        text_t.h \
    54   gsdlconf.h
    55 
    5647SOURCES = \
    57   cfgread.cpp      cnfgable.cpp     cnfgator.cpp     dbclass.cpp \
    58   display.cpp      fileutil.cpp     gdbmclass.cpp    gsdlsitecfg.cpp \
    59   gsdltimes.cpp    gsdltools.cpp    gsdlunicode.cpp  infodbclass.cpp \
    60   md5.cpp          OIDtools.cpp     phrases.cpp      text_t.cpp
     48    cfgread.cpp \
     49    cnfgable.cpp \
     50    cnfgator.cpp \
     51    dbclass.cpp \
     52    display.cpp \
     53    fileutil.cpp \
     54    gdbmclass.cpp \
     55    gsdlsitecfg.cpp \
     56    gsdltimes.cpp \
     57    gsdltools.cpp \
     58    gsdlunicode.cpp \
     59    infodbclass.cpp \
     60    md5.cpp \
     61    OIDtools.cpp \
     62    phrases.cpp \
     63    text_t.cpp
    6164
    6265OBJECTS = \
    63   cfgread.o        cnfgable.o       cnfgator.o       dbclass.o \
    64   display.o        fileutil.o       gdbmclass.o      gsdlsitecfg.o \
    65   gsdltimes.o      gsdltools.o      gsdlunicode.o    infodbclass.o \
    66   md5.o            OIDtools.o       phrases.o        text_t.o
     66    cfgread.o \
     67    cnfgable.o \
     68    cnfgator.o \
     69    dbclass.o \
     70    display.o \
     71    fileutil.o \
     72    gdbmclass.o \
     73    gsdlsitecfg.o \
     74    gsdltimes.o \
     75    gsdltools.o \
     76    gsdlunicode.o \
     77    infodbclass.o \
     78    md5.o \
     79    OIDtools.o \
     80    phrases.o \
     81    text_t.o
     82
     83LIBRARY = gsdllib.a
    6784
    6885
    69 all: gsdllib.a
     86gsdllib.a: $(OBJECTS)
     87    rm -f gsdllib.a
     88    $(AR) cru gsdllib.a $(OBJECTS)
     89    $(RANLIB) gsdllib.a
    7090
    71 GSDLLIBOBJECTS = $(OBJECTS)
     91all: $(LIBRARY)
    7292
    73 gsdllib.a: $(GSDLLIBOBJECTS)
    74     rm -f gsdllib.a
    75     $(AR) cru gsdllib.a $(GSDLLIBOBJECTS)
    76     $(RANLIB) gsdllib.a
     93install: $(LIBRARY)
    7794
    7895clean:
    7996    rm -f $(OBJECTS) gsdllib.a
    8097
    81 distclean: clean
    82     rm -f Makefile
    83 install:
     98distclean:
     99    rm -f $(OBJECTS) gsdllib.a Makefile
    84100
    85101depend:
    86     makedepend -Y -- $(DEFS) $(INCLUDES) $(CCFLAGS) -- $(SOURCES)
    87 
    88 
    89 
    90 
     102    makedepend -Y -- $(DEFS) $(INCLUDES) $(CPPFLAGS) -- $(SOURCES)
Note: See TracChangeset for help on using the changeset viewer.