Take EXEEXT into account for PE builds.
[wine/hacks.git] / tools / winegcc / Makefile.in
blobc94916fdc7e686c7d72a241722ce1ac47fd234d2
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)\""
11 TOPSRCDIR = @top_srcdir@
12 TOPOBJDIR = ../..
13 SRCDIR = @srcdir@
14 VPATH = @srcdir@
15 EXEEXT = @EXEEXT@
16 MODULE = none
18 PROGRAMS = winegcc$(EXEEXT)
20 C_SRCS = \
21 utils.c \
22 winegcc.c
24 all: $(PROGRAMS)
26 @MAKE_RULES@
28 winegcc$(EXEEXT): winegcc.o utils.o
29 $(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT)
31 install:: $(PROGRAMS)
32 $(MKINSTALLDIRS) $(bindir)
33 $(INSTALL_PROGRAM) winegcc$(EXEEXT) $(bindir)/winegcc$(EXEEXT)
34 cd $(bindir) && $(RM) wineg++$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) wineg++$(EXEEXT)
35 cd $(bindir) && $(RM) winecpp$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) winecpp$(EXEEXT)
37 uninstall::
38 $(RM) $(bindir)/winegcc$(EXEEXT) $(bindir)/wineg++y$(EXEEXT) $(bindir)/winecpp$(EXEEXT)
40 ### Dependencies: