1 |
|
---|
2 | #srcdir = c:\home\rjmcnab\humanity\gdbm
|
---|
3 | srcdir = d:\gsdl\packages\wingdbm
|
---|
4 | VPATH = $(srcdir)
|
---|
5 |
|
---|
6 | AR = lib
|
---|
7 | CC = cl
|
---|
8 | #CFLAGS = -g -O
|
---|
9 | CPPFLAGS =
|
---|
10 | DEFS = -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN
|
---|
11 | LDFLAGS =
|
---|
12 |
|
---|
13 | COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS)
|
---|
14 | LINK = $(CC) $(LDFLAGS)
|
---|
15 |
|
---|
16 | o = .obj
|
---|
17 |
|
---|
18 | .SUFFIXES:
|
---|
19 | .SUFFIXES: .c $o
|
---|
20 |
|
---|
21 | .c$o:
|
---|
22 | $(COMPILE) $<
|
---|
23 |
|
---|
24 |
|
---|
25 | PROGS = gdbm.lib testgdbm.exe
|
---|
26 |
|
---|
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
|
---|
45 |
|
---|
46 | all: gdbm.lib
|
---|
47 |
|
---|
48 | progs: $(PROGS)
|
---|
49 |
|
---|
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 |
|
---|
57 |
|
---|
58 | clean:
|
---|
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
|
---|