Correct tests involved with processing the LVIF_DI_SETITEM flag.
[wine] / programs / Makeprog.rules.in
1 # Global rules for building a Winelib program     -*-Makefile-*-
2 #
3 # Each individual makefile should define the following variables:
4 # MODULE       : name of the main module being built
5 # EXTRALIBS    : extra libraries to link in (optional)
6 # EXTRADEFS    : extra symbol definitions, like -DWINELIB (optional)
7 #
8 # plus all variables required by the global Make.rules.in
9 #
10
11 DEFS       = @DLLFLAGS@ -DSTRICT -DNONAMELESSUNION -DNONAMELESSSTRUCT $(EXTRADEFS)
12 LDDLLFLAGS = @LDDLLFLAGS@
13 ALL_OBJS   = $(MODULE).spec.o $(OBJS)
14 ALL_LIBS   = $(LIBWINE) $(EXTRALIBS) $(LIBS)
15 SYMBOLFILE = $(MODULE).tmp.o
16
17 all: $(MODULE)
18
19 @MAKE_RULES@
20
21 # Rules for main module
22
23 $(MODULE).so: $(ALL_OBJS) Makefile.in
24         $(LDSHARED) $(LDDLLFLAGS) $(ALL_OBJS) -o $@ $(ALL_LIBS)
25
26 $(MODULE): $(MODULE).so
27         $(RM) $(MODULE) && $(LN_S) $(TOPOBJDIR)/wine $(MODULE)
28
29 # Rules for checking that no imports are missing
30
31 checklink:: $(MODULE).so
32         $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c $(MODULE).so $(ALL_LIBS) && $(RM) checklink
33
34 # Rules for testing
35
36 $(TESTRESULTS): $(MODULE).so
37
38 # Rules for debug channels
39
40 debug_channels: dummy
41         $(TOPSRCDIR)/tools/make_debug $(MODULE).spec $(C_SRCS)
42
43 # Rules for installation
44
45 install:: $(MODULE).so
46         [ -d $(bindir) ] || $(MKDIR) $(bindir)
47         $(INSTALL_PROGRAM) $(MODULE).so $(bindir)/$(MODULE).so
48         cd $(bindir) && $(RM) $(MODULE) && $(LN_S) wine $(MODULE)
49
50 uninstall::
51         cd $(bindir) && $(RM) $(MODULE) $(MODULE).so
52
53 clean::
54         $(RM) $(MODULE)