File: Makefile.win

package info (click to toggle)
python-maxminddb 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,600 kB
  • sloc: ansic: 7,565; python: 1,711; perl: 987; makefile: 273; sh: 190
file content (37 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
CFLAGS = /Zi /Wall /wd4255 /wd4996 /wd4127 /wd4820 /wd4100 /wd4619 \
		 /wd4514 /wd4668 /I.
CC = cl /nologo
TESTS = $(patsubst %.c, %.exe, $(wildcard t/*.c))

%.exe:
	$(CC) $(LDFLAGS) $(filter %.obj %.lib %.dll, $^) $(LDLIBS) /Fe $@

%.o:
	$(CC) $(CFLAGS) $(CPPFLAGS) /c $(filter %.c, $^) $(LDLIBS) /Fo $@

%.lib:
	lib /nologo /out:$@ $(filter %.obj, $^)

%.dll:
	lib /nologo /out:$@ $(filter %.obj, $^)

all: tap.lib tests

tap.lib: tap.obj

tap.obj: tap.c tap.h

tests: $(TESTS)

$(TESTS): %.exe: %.obj tap.lib

$(patsubst %.exe, %.obj, $(TESTS)): %.obj: %.c tap.h

clean:
	rm -rf *.obj t/*.obj tap.lib $(TESTS)

check test: all
	prove

.PHONY: all clean check test tests