Line | |
---|
1 | GEODIR=C:/OSGeo4W |
---|
2 | DESTDIR=C:\OSGeo4W |
---|
3 | CFLAGS=-g -Wall |
---|
4 | CC=cl /TP |
---|
5 | LIBS=$(GEODIR)/lib/libfcgi.lib /nologo |
---|
6 | LIBS1=./libcgic.lib |
---|
7 | |
---|
8 | CFLAGS=/EHa /nologo /DCRT_SECURE_NO_WARNING /MT /W2 /O2 /D "WIN32" \ |
---|
9 | -I $(GEODIR)/include |
---|
10 | |
---|
11 | all: libcgic.lib #cgictest.exe capture.exe |
---|
12 | |
---|
13 | install: libcgic.lib |
---|
14 | copy libcgic.lib $(DESTDIR)\lib |
---|
15 | copy cgic.h $(DESTDIR)\include |
---|
16 | @echo libcgic.lib is now installed in $(DESTDIR)\lib and cgic.h is in $(DESTDIR)\include. |
---|
17 | |
---|
18 | libcgic.lib: cgic.obj cgic.h |
---|
19 | if exist cgic.lib del cgic.lib |
---|
20 | lib /out:libcgic.lib cgic.obj $(LIBS) |
---|
21 | |
---|
22 | cgictest.obj: cgictest.c libcgic.lib |
---|
23 | $(CC) $(CFLAGS) -c cgictest.c |
---|
24 | |
---|
25 | cgictest.exe: cgictest.obj |
---|
26 | link cgictest.obj $(LIBS) /out:cgictest.exe |
---|
27 | |
---|
28 | cgic.obj: |
---|
29 | $(CC) $(CFLAGS) -c cgic.c |
---|
30 | |
---|
31 | capture.exe: capture.obj libcgic.lib |
---|
32 | $(CC) $(CFLAGS) capture.c $(LIBS) |
---|
33 | |
---|
34 | clean: |
---|
35 | erase *.obj *.lib *.exe *.manifest |
---|
Note: See
TracBrowser
for help on using the repository browser.