Commit 39c961aa authored by Alexandre Julliard's avatar Alexandre Julliard

Take EXEEXT into account for PE builds.

parent 1c6cb382
...@@ -12,9 +12,10 @@ TOPSRCDIR = @top_srcdir@ ...@@ -12,9 +12,10 @@ TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../.. TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
EXEEXT = @EXEEXT@
MODULE = none MODULE = none
PROGRAMS = winegcc PROGRAMS = winegcc$(EXEEXT)
C_SRCS = \ C_SRCS = \
utils.c \ utils.c \
...@@ -24,16 +25,16 @@ all: $(PROGRAMS) ...@@ -24,16 +25,16 @@ all: $(PROGRAMS)
@MAKE_RULES@ @MAKE_RULES@
winegcc: winegcc.o utils.o winegcc$(EXEEXT): winegcc.o utils.o
$(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT) $(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT)
install:: $(PROGRAMS) install:: $(PROGRAMS)
$(MKINSTALLDIRS) $(bindir) $(MKINSTALLDIRS) $(bindir)
$(INSTALL_PROGRAM) winegcc $(bindir)/winegcc $(INSTALL_PROGRAM) winegcc$(EXEEXT) $(bindir)/winegcc$(EXEEXT)
cd $(bindir) && $(RM) wineg++ && $(LN_S) winegcc wineg++ cd $(bindir) && $(RM) wineg++$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) wineg++$(EXEEXT)
cd $(bindir) && $(RM) winecpp && $(LN_S) winegcc winecpp cd $(bindir) && $(RM) winecpp$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) winecpp$(EXEEXT)
uninstall:: uninstall::
$(RM) $(bindir)/winegcc $(bindir)/wineg++ $(bindir)/winecpp $(RM) $(bindir)/winegcc$(EXEEXT) $(bindir)/wineg++y$(EXEEXT) $(bindir)/winecpp$(EXEEXT)
### Dependencies: ### Dependencies:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment