Last change
on this file since 216 was
216,
checked in by djay, 14 years ago
|
Add WIN32 platform support. Fix for values containing @ passed as KVP.
|
File size:
878 bytes
|
Rev | Line | |
---|
[1] | 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 | |
---|
[216] | 11 | all: libcgic.lib #cgictest.exe capture.exe |
---|
[1] | 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 |
---|
[216] | 26 | link cgictest.obj $(LIBS) /out:cgictest.exe |
---|
[1] | 27 | |
---|
| 28 | cgic.obj: |
---|
| 29 | $(CC) $(CFLAGS) -c cgic.c |
---|
| 30 | |
---|
| 31 | capture.exe: capture.obj libcgic.lib |
---|
[216] | 32 | $(CC) $(CFLAGS) capture.c $(LIBS) |
---|
[1] | 33 | |
---|
| 34 | clean: |
---|
| 35 | erase *.obj *.lib *.exe *.manifest |
---|
Note: See
TracBrowser
for help on using the repository browser.