Merge branch 'charm' of charmgit:charm into charm
[charm.git] / examples / charm++ / queens / Makefile.win32
1 CHARMBIN=..\..\..\bin
2 CPP = cl.exe
3
4 INC = /I"..\..\..\include"
5
6 CPP_PROJ=/nologo /MT /w /GX /Z7 /Od $(INC)\
7  /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX\
8  /Fo /TP /c
9
10 LINK=link.exe
11 LINK_FLAGS = /nologo /LIBPATH:"..\..\..\lib"
12 LINK_OTHER = libldb-rand.o libck.a libconv-core.a libconv-util.a libtrace-none.a libconv-cplus-y.a ws2_32.lib kernel32.lib
13
14 OBJS = counter.obj pgm.obj
15
16 #.SILENT:
17
18 all:   counter.obj pgm.obj
19         $(LINK) $(LINK_FLAGS) $(LINK_OTHER) /out:"pgm.exe" $(OBJS)
20         copy $(CHARMBIN)\charmrun.exe .
21
22 pgm.obj : pgm.C pgm.h pgm.def.h pgm.decl.h
23         $(CPP) $(CPP_PROJ) pgm.C
24         
25 counter.obj : counter.C counter.h counter.def.h counter.decl.h
26         $(CPP) $(CPP_PROJ) counter.C
27
28 pgm.def.h pgm.decl.h : pgm.ci
29         $(CHARMBIN)\charmxi  pgm.ci
30
31 counter.def.h counter.decl.h : counter.ci
32         $(CHARMBIN)\charmxi  counter.ci
33
34 clean:
35         del /q *.decl.h *.def.h conv-host.exe *.obj pgm.exe vc60.*