1 DEFS = @DLLFLAGS@ -DSTRICT -DNONAMELESSUNION -DNONAMELESSSTRUCT $(EXTRADEFS)
2 LDDLLFLAGS = @LDDLLFLAGS@
3 TOPSRCDIR = @top_srcdir@
8 PROGRAMS = expand hello hello2 hello3 hello4 hello5 new rolex volinfo
9 ALL_LIBS = $(LIBWINE) $(LIBS)
36 all: $(PROGRAMS) $(PROGRAMS:%=%.so)
40 expand.spec.c: expand.o $(WINEBUILD)
41 $(LDPATH) $(WINEBUILD) $(DEFS) -sym expand.o -o expand.spec.c -exe expand -mgui -L$(DLLDIR) -llz32 -lkernel32
42 expand.so: expand.o expand.spec.o
43 $(LDSHARED) $(LDDLLFLAGS) -o expand.so $+ $(ALL_LIBS)
45 hello.spec.c: hello.o $(WINEBUILD)
46 $(LDPATH) $(WINEBUILD) $(DEFS) -sym hello.o -o hello.spec.c -exe hello -mgui -L$(DLLDIR) -luser32 -lgdi32 -lkernel32
47 hello.so: hello.o hello.spec.o
48 $(LDSHARED) $(LDDLLFLAGS) -o hello.so $+ $(ALL_LIBS)
50 hello2.spec.c: hello2.o $(WINEBUILD)
51 $(LDPATH) $(WINEBUILD) $(DEFS) -sym hello2.o -o hello2.spec.c -exe hello2 -mgui -L$(DLLDIR) -luser32 -lkernel32
52 hello2.so: hello2.o hello2.spec.o
53 $(LDSHARED) $(LDDLLFLAGS) -o hello2.so $+ $(ALL_LIBS)
55 hello3.spec.c: hello3.o hello3res.res $(WINEBUILD)
56 $(LDPATH) $(WINEBUILD) $(DEFS) -sym hello3.o -res hello3res.res -o hello3.spec.c -exe hello3 -mgui -L$(DLLDIR) -lcomdlg32 -luser32 -lgdi32 -lkernel32
57 hello3.so: hello3.o hello3.spec.o
58 $(LDSHARED) $(LDDLLFLAGS) -o hello3.so $+ $(ALL_LIBS)
60 hello4.spec.c: hello4.o $(WINEBUILD)
61 $(LDPATH) $(WINEBUILD) $(DEFS) -sym hello4.o -o hello4.spec.c -exe hello4 -mgui -L$(DLLDIR) -luser32 -lgdi32 -lkernel32
62 hello4.so: hello4.o hello4.spec.o
63 $(LDSHARED) $(LDDLLFLAGS) -o hello4.so $+ $(ALL_LIBS)
65 hello5.spec.c: hello5.o $(WINEBUILD)
66 $(LDPATH) $(WINEBUILD) $(DEFS) -sym hello5.o -o hello5.spec.c -exe hello5 -mgui -L$(DLLDIR) -lkernel32
67 hello5.so: hello5.o hello5.spec.o
68 $(LDSHARED) $(LDDLLFLAGS) -o hello5.so $+ $(ALL_LIBS)
70 new.spec.c: new.o $(WINEBUILD)
71 $(LDPATH) $(WINEBUILD) $(DEFS) -sym new.o -o new.spec.c -exe new -mgui -L$(DLLDIR) -luser32 -lgdi32 -lkernel32
72 new.so: new.o new.spec.o
73 $(LDSHARED) $(LDDLLFLAGS) -o new.so $+ $(ALL_LIBS)
75 rolex.spec.c: rolex.o $(WINEBUILD)
76 $(LDPATH) $(WINEBUILD) $(DEFS) -sym rolex.o -o rolex.spec.c -exe rolex -mgui -L$(DLLDIR) -luser32 -lgdi32 -lkernel32
77 rolex.so: rolex.o rolex.spec.o
78 $(LDSHARED) $(LDDLLFLAGS) -o rolex.so $+ $(ALL_LIBS)
80 volinfo.spec.c: volinfo.o $(WINEBUILD)
81 $(LDPATH) $(WINEBUILD) $(DEFS) -sym volinfo.o -o volinfo.spec.c -exe volinfo -mgui -L$(DLLDIR) -lkernel32
82 volinfo.so: volinfo.o volinfo.spec.o
83 $(LDSHARED) $(LDDLLFLAGS) -o volinfo.so $+ $(ALL_LIBS)
86 $(RM) $@ && $(LN_S) $(TOPOBJDIR)/wine $@
88 $(PROGRAMS:%=%.so/_checklink_): $(PROGRAMS:%=%.so)
89 $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c `dirname $@` && $(RM) checklink
91 checklink:: $(PROGRAMS:%=%.so/_checklink_)