blob: 157e0145d6fd802e1e1dba91af8f38764813f552 (
plain)
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
38
39
40
41
42
43
44
45
46
47
|
#NMAKE makefile for Windows developers.
##Produces a static library (GeoIP.lib).
#Produces a DLL (GeoIP.dll) and library (GeoIP.lib).
COMPILER=cl
CFLAGS=-DWIN32 -DGEOIP_EXPORTS -MD -nologo
GEOIPINC = -I..\libGeoIP
CC1 = $(COMPILER) $(CFLAGS) $(GEOIPINC) -DGEOIPDATADIR=\"$(GEOIPDATADIR)\" -DPACKAGE_VERSION=\"1.6.3\"
LINKER=link
LDFLAGS=/DLL /nologo /subsystem:console
LD1 = $(LINKER) $(LDFLAGS)
OBJS=GeoIP.obj GeoIPCity.obj GeoIP_deprecated.obj regionName.obj timeZone.obj pread.obj
EXTRA_LIBS= ws2_32.lib
AR=lib
#GeoIP.lib: GeoIP.obj GeoIPCity.obj regionName.obj md5.obj timeZone.obj
# $(AR) -nologo $(OBJS) $(EXTRA_LIBS) /OUT:GeoIP.lib
GeoIP.dll GeoIP.lib: $(OBJS)
$(LD1) $(OBJS) $(EXTRA_LIBS) /out:GeoIP.dll /implib:GeoIP.lib
GeoIP.obj: GeoIP.c
$(CC1) -c GeoIP.c $(GEOIPINC)
GeoIPCity.obj: GeoIPCity.c
$(CC1) -c GeoIPCity.c $(GEOIPINC)
GeoIP_deprecated.obj: GeoIP_deprecated.c
$(CC1) -c GeoIP_deprecated.c $(GEOIPINC)
regionName.obj: regionName.c
$(CC1) -c regionName.c $(GEOIPINC)
timeZone.obj: timeZone.c
$(CC1) -c timeZone.c $(GEOIPINC)
pread.obj: pread.c
$(CC1) -c pread.c $(GEOIPINC)
|