Moved mode setting out of .spec file into Makefile.
[wine] / miscemu / Makefile.in
1 DEFS      = -D__WINE__
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 MODULE    = wine
7 IMPORTS   = ntdll
8 LDIMPORTS = ntdll.dll
9
10 SPEC_SRCS = wine.spec
11
12 C_SRCS = \
13         main.c
14
15 all: $(MODULE)
16
17 @MAKE_RULES@
18
19 ALL_OBJS = $(SPEC_SRCS:.spec=.spec.o) $(OBJS)
20
21 $(MODULE): $(ALL_OBJS)
22         $(CC) -o $@ $(ALL_OBJS) -L$(DLLDIR) $(LDIMPORTS:%=-l%) $(LIBWINE) $(LIBUNICODE) $(LIBS) $(LDFLAGS)
23
24 wine.spec.c: wine.spec
25         $(LDPATH) $(WINEBUILD) $(DEFS) -o $@ -spec $(SRCDIR)/wine.spec -mgui -L$(DLLDIR) $(IMPORTS:%=-l%)
26
27 install:: $(MODULE)
28         $(MKINSTALLDIRS) $(bindir)
29         $(INSTALL_PROGRAM) wine $(bindir)/wine
30
31 uninstall::
32         $(RM) $(bindir)/wine
33
34 clean::
35         $(RM) $(MODULE)
36
37 ### Dependencies: