Build the dlls with winegcc.
[wine] / tools / winegcc / Makefile.in
1 DEFS = \
2         -DINCLUDEDIR="\"$(includedir)\"" \
3         -DDLLDIR="\"$(dlldir)\"" \
4         -DLIBDIR="\"$(libdir)\"" \
5         -DDLLFLAGS="\"@DLLFLAGS@\"" \
6         -DLDDLLFLAGS="\"@LDDLLFLAGS@\"" \
7         -DCC="\"$(CC)\"" \
8         -DCPP="\"@CPPBIN@\"" \
9         -DCXX="\"$(CXX)\""
10
11 TOPSRCDIR = @top_srcdir@
12 TOPOBJDIR = ../..
13 SRCDIR    = @srcdir@
14 VPATH     = @srcdir@
15 MODULE    = none
16
17 PROGRAMS = winegcc
18
19 C_SRCS = \
20         utils.c \
21         winegcc.c
22
23 all: $(PROGRAMS)
24
25 @MAKE_RULES@
26
27 winegcc: winegcc.o utils.o
28         $(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT)
29
30 install:: $(PROGRAMS)
31         $(MKINSTALLDIRS) $(bindir)
32         $(INSTALL_PROGRAM) winegcc $(bindir)/winegcc
33         cd $(bindir) && $(RM) wineg++ && $(LN_S) winegcc wineg++
34         cd $(bindir) && $(RM) winecpp && $(LN_S) winegcc winecpp
35
36 uninstall::
37         $(RM) $(bindir)/winegcc $(bindir)/wineg++ $(bindir)/winecpp
38
39 ### Dependencies: