Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 1 | # This is a makefile for win32 systems (VC 5.0). |
| 2 | # Christopher Blizzard |
| 3 | # http://odin.appliedtheory.com/ |
| 4 | |
| 5 | CC = cl |
| 6 | CFLAGS = /c /GB /Gi /nologo /I. /DWIN32 /MT /Zi |
| 7 | |
| 8 | LD = link |
| 9 | LDFLAGS = /DEBUG /NODEFAULTLIB:libc |
| 10 | |
| 11 | AR = lib |
| 12 | |
| 13 | all: xml.lib |
| 14 | |
| 15 | test: tester.exe |
| 16 | |
| 17 | SHARED_OBJS = entities.obj parser.obj tree.obj SAX.obj |
| 18 | |
| 19 | xml.lib: $(SHARED_OBJS) |
| 20 | $(AR) /out:xml.lib $(SHARED_OBJS) |
| 21 | |
| 22 | tester.obj: $(SHARED_OBJS) |
| 23 | $(CC) $(CFLAGS) tester.c /out:tester.obj |
| 24 | |
| 25 | tester.exe: tester.obj xml.lib |
| 26 | $(LD) $(LDFLAGS) /out:tester.exe tester.obj xml.lib |
| 27 | |
| 28 | clean: |
| 29 | -del /f $(SHARED_OBJS) tester.obj |
| 30 | -del /f tester.exe |
| 31 | -del /f xml.lib |
| 32 | -del /f *.pdb |
| 33 | -del /f *.idb |
| 34 | -del /f *.ilk |