Ignore:
Timestamp:
2000-03-02T11:23:47+13:00 (24 years ago)
Author:
sjboddie
Message:

tidied up windows installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/packages/wingdbm/win32.mak

    r774 r1000  
     1###########################################################################
     2#
     3# win32 makefile -- wingdbm
     4# A component of the Greenstone digital library software
     5# from the New Zealand Digital Library Project at the
     6# University of Waikato, New Zealand.
     7#
     8# Copyright (C) 1999  The New Zealand Digital Library Project
     9#
     10#
     11# This program is free software; you can redistribute it and/or modify
     12# it under the terms of the GNU General Public License as published by
     13# the Free Software Foundation; either version 2 of the License, or
     14# (at your option) any later version.
     15#
     16# This program is distributed in the hope that it will be useful,
     17# but WITHOUT ANY WARRANTY; without even the implied warranty of
     18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19# GNU General Public License for more details.
     20#
     21# You should have received a copy of the GNU General Public License
     22# along with this program; if not, write to the Free Software
     23# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     24#
     25###########################################################################
    126
    2 #srcdir = c:\home\rjmcnab\humanity\gdbm
    3 srcdir = d:\gsdl\packages\wingdbm
    4 VPATH = $(srcdir)
     27GSDLHOME = d:\home\dl\gsdl
     28srcdir = $(GSDLHOME)\packages\wingdbm
    529
    630AR = lib
    731CC = cl
    8 #CFLAGS = -g -O
    932CPPFLAGS =
    10 DEFS = -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN
     33DEFS = -D__WIN32__
    1134LDFLAGS =
    1235
     
    2245    $(COMPILE) $<
    2346
     47HEADERS = gdbmdefs.h extern.h gdbmerrno.h systems.h gdbmconst.h \
     48          proto.h
    2449
    25 PROGS = gdbm.lib testgdbm.exe
     50SOURCES = gdbmopen.c gdbmdelete.c gdbmfetch.c  gdbmstore.c gdbmclose.c \
     51      gdbmreorg.c gdbmseq.c gdbmsync.c gdbmerrno.c gdbmexists.c gdbmsetopt.c \
     52      bucket.c falloc.c findkey.c global.c hash.c update.c \
     53      version.c alloca.c
    2654
    27 GDBM_CF = gdbmopen.c gdbmdelete.c gdbmfetch.c  gdbmstore.c gdbmclose.c \
    28     gdbmreorg.c gdbmseq.c gdbmsync.c gdbmerrno.c gdbmexists.c gdbmsetopt.c \
    29     bucket.c falloc.c findkey.c global.c hash.c update.c \
    30     version.c alloca.c
    31 
    32 TEST_CF = testgdbm.c
    33 
    34 GDBM_OF = gdbmopen$o gdbmdelete$o gdbmfetch$o  gdbmstore$o gdbmclose$o \
    35     gdbmreorg$o gdbmseq$o gdbmsync$o gdbmerrno$o gdbmexists$o gdbmsetopt$o \
    36     bucket$o falloc$o findkey$o global$o hash$o update$o \
    37     version$o alloca$o
    38      
    39 SRCS = $(GDBM_CF) $(TEST_CF)
    40 
    41 OBJS = $(GDBM_OF)
    42 
    43 HDRS = gdbmdefs.h extern.h gdbmerrno.h systems.h gdbmconst.h \
    44     proto.h
     55OBJECTS = gdbmopen$o gdbmdelete$o gdbmfetch$o  gdbmstore$o gdbmclose$o \
     56      gdbmreorg$o gdbmseq$o gdbmsync$o gdbmerrno$o gdbmexists$o gdbmsetopt$o \
     57      bucket$o falloc$o findkey$o global$o hash$o update$o \
     58      version$o alloca$o
    4559
    4660all: gdbm.lib
    4761
    48 progs: $(PROGS)
     62gdbm.lib: $(OBJECTS) gdbm.h
     63      del gdbm.lib
     64      $(AR) /out:gdbm.lib $(OBJECTS)
    4965
    50 gdbm.lib: $(OBJS) gdbm.h
    51     del gdbm.lib
    52     $(AR) /out:gdbm.lib $(OBJS)
    53 
    54 testgdbm.exe: testgdbm$o gdbm.lib
    55     $(LINK) /Fe"testgdbm.exe" testgdbm$o gdbm.lib
    56 
     66install:
    5767
    5868clean:
    59     rm -f $(PROGS) *$o core junk*
    60 
    61 
    62 # gdbm files
    63 gdbmclose$o:    autoconf.h gdbmdefs.h
    64 gdbmdelete$o:   autoconf.h gdbmdefs.h gdbmerrno.h
    65 gdbmfetch$o:    autoconf.h gdbmdefs.h gdbmerrno.h
    66 gdbmopen$o: autoconf.h gdbmdefs.h gdbmerrno.h
    67 gdbmreorg$o:    autoconf.h gdbmdefs.h gdbmerrno.h extern.h
    68 gdbmseq$o:  autoconf.h gdbmdefs.h
    69 gdbmstore$o:    autoconf.h gdbmdefs.h gdbmerrno.h
    70 
    71 # gdbm support files
    72 bucket$o:   autoconf.h gdbmdefs.h
    73 falloc$o:   autoconf.h gdbmdefs.h
    74 alloca$o:   autoconf.h gdbmdefs.h
    75 findkey$o:  autoconf.h gdbmdefs.h
    76 global$o:   autoconf.h gdbmdefs.h gdbmerrno.h
    77 hash$o:     autoconf.h gdbmdefs.h
    78 update$o:   autoconf.h gdbmdefs.h
    79 version$o:
    80 extern.h:
    81 gdbmdefs.h: gdbmconst.h systems.h
    82     touch gdbmdefs.h
    83 
    84 # other programs
    85 testgdbm$o: autoconf.h gdbmdefs.h extern.h gdbmerrno.h systems.h
    86 testdbm$o:  autoconf.h
    87 testndbm$o: autoconf.h ndbm.h
    88 tdbm$o:     autoconf.h
    89 conv2gdbm$o:    autoconf.h gdbm.h
     69    del gdbm.lib *$o
Note: See TracChangeset for help on using the changeset viewer.