1 |
|
---|
2 | srcdir = c:\home\rjmcnab\humanity\gdbm
|
---|
3 | VPATH = $(srcdir)
|
---|
4 |
|
---|
5 | AR = lib
|
---|
6 | CC = cl
|
---|
7 | #CFLAGS = -g -O
|
---|
8 | CPPFLAGS =
|
---|
9 | DEFS = -DHAVE_CONFIG_H -D__WIN32__ -D_LITTLE_ENDIAN
|
---|
10 | LDFLAGS =
|
---|
11 |
|
---|
12 | o = .obj
|
---|
13 |
|
---|
14 | .SUFFIXES:
|
---|
15 | .SUFFIXES: .c .$o
|
---|
16 |
|
---|
17 | .c.$o:
|
---|
18 | $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<
|
---|
19 |
|
---|
20 |
|
---|
21 | PROGS = gdbm.lib testgdbm.exe
|
---|
22 |
|
---|
23 | GDBM_CF = gdbmopen.c gdbmdelete.c gdbmfetch.c gdbmstore.c gdbmclose.c \
|
---|
24 | gdbmreorg.c gdbmseq.c gdbmsync.c gdbmerrno.c gdbmexists.c gdbmsetopt.c \
|
---|
25 | bucket.c falloc.c findkey.c global.c hash.c update.c \
|
---|
26 | version.c
|
---|
27 |
|
---|
28 | TEST_CF = testgdbm.c
|
---|
29 |
|
---|
30 | GDBM_OF = gdbmopen.$o gdbmdelete.$o gdbmfetch.$o gdbmstore.$o gdbmclose.$o \
|
---|
31 | gdbmreorg.$o gdbmseq.$o gdbmsync.$o gdbmerrno.$o gdbmexists.$o gdbmsetopt.$o \
|
---|
32 | bucket.$o falloc.$o findkey.$o global.$o hash.$o update.$o \
|
---|
33 | version.$o
|
---|
34 |
|
---|
35 | SRCS = $(GDBM_CF) $(TEST_CF)
|
---|
36 |
|
---|
37 | OBJS = $(GDBM_OF)
|
---|
38 |
|
---|
39 | HDRS = gdbmdefs.h extern.h gdbmerrno.h systems.h gdbmconst.h \
|
---|
40 | proto.h
|
---|
41 |
|
---|
42 | all: gdbm.lib
|
---|
43 |
|
---|
44 | progs: $(PROGS)
|
---|
45 |
|
---|
46 | gdbm.lib: $(OBJS) gdbm.h
|
---|
47 | del gdbm.lib
|
---|
48 | $(AR) /out:gdbm.lib $(OBJS)
|
---|
49 |
|
---|
50 | testgdbm.exe: testgdbm.$o gdbm.lib
|
---|
51 | $(CC) $(LDFLAGS) /Fe"testgdbm.exe" testgdbm.$o gdbm.lib
|
---|
52 |
|
---|
53 |
|
---|
54 | clean:
|
---|
55 | rm -f $(PROGS) *.$o core junk*
|
---|
56 |
|
---|
57 |
|
---|
58 | # gdbm files
|
---|
59 | gdbmclose.$o: autoconf.h gdbmdefs.h
|
---|
60 | gdbmdelete.$o: autoconf.h gdbmdefs.h gdbmerrno.h
|
---|
61 | gdbmfetch.$o: autoconf.h gdbmdefs.h gdbmerrno.h
|
---|
62 | gdbmopen.$o: autoconf.h gdbmdefs.h gdbmerrno.h
|
---|
63 | gdbmreorg.$o: autoconf.h gdbmdefs.h gdbmerrno.h extern.h
|
---|
64 | gdbmseq.$o: autoconf.h gdbmdefs.h
|
---|
65 | gdbmstore.$o: autoconf.h gdbmdefs.h gdbmerrno.h
|
---|
66 |
|
---|
67 | # gdbm support files
|
---|
68 | bucket.$o: autoconf.h gdbmdefs.h
|
---|
69 | falloc.$o: autoconf.h gdbmdefs.h
|
---|
70 | findkey.$o: autoconf.h gdbmdefs.h
|
---|
71 | global.$o: autoconf.h gdbmdefs.h gdbmerrno.h
|
---|
72 | hash.$o: autoconf.h gdbmdefs.h
|
---|
73 | update.$o: autoconf.h gdbmdefs.h
|
---|
74 | version.$o:
|
---|
75 | extern.h:
|
---|
76 | gdbmdefs.h: gdbmconst.h systems.h
|
---|
77 | touch gdbmdefs.h
|
---|
78 |
|
---|
79 | # other programs
|
---|
80 | testgdbm.$o: autoconf.h gdbmdefs.h extern.h gdbmerrno.h systems.h
|
---|
81 | testdbm.$o: autoconf.h
|
---|
82 | testndbm.$o: autoconf.h ndbm.h
|
---|
83 | tdbm.$o: autoconf.h
|
---|
84 | conv2gdbm.$o: autoconf.h gdbm.h
|
---|