1# This is a makefile for win32 systems (VC 5.0).
2# Christopher Blizzard
3# http://odin.appliedtheory.com/
4
5CC = cl
6CFLAGS = /c /GB /Gi /nologo /I. /DWIN32 /MT /Zi
7
8LD = link
9LDFLAGS = /DEBUG /NODEFAULTLIB:libc
10
11AR = lib
12
13all: xml.lib
14
15test: tester.exe
16
17SHARED_OBJS = entities.obj parser.obj tree.obj SAX.obj
18
19xml.lib: $(SHARED_OBJS)
20	$(AR) /out:xml.lib $(SHARED_OBJS)
21
22tester.obj: $(SHARED_OBJS)
23	$(CC) $(CFLAGS) tester.c /out:tester.obj
24
25tester.exe: tester.obj xml.lib
26	$(LD) $(LDFLAGS) /out:tester.exe tester.obj xml.lib
27
28clean:
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
35