I noticed the binary the Makefile.raw system creates is called
warzone2100.exe on Linux as well as on Windows. The attached patch
appends .exe only on Windows.
--
Yield to Temptation ... it may not pass your way again.
-- Lazarus Long, "Time Enough for Love"
Index: makerules/exe.mk
===================================================================
--- makerules/exe.mk (revision 300)
+++ makerules/exe.mk (working copy)
@@ -2,6 +2,6 @@
DEPS=$(patsubst %.c,%.o, $(SRC:%.rc=%.o)) $(LIBS:%=../lib/lib%.a)
-all: $(EXE).exe
-$(EXE).exe: $(DEPS) ; $(CC) $(CFLAGS) -o $(EXE).exe $(DEPS) $(LDFLAGS)
-clean: ; $(RMF) $(EXE).exe *.o
+all: $(EXE)$(EXEEXT)
+$(EXE)$(EXEEXT): $(DEPS) ; $(CC) $(CFLAGS) -o $(EXE)$(EXEEXT) $(DEPS)
$(LDFLAGS)
+clean: ; $(RMF) $(EXE)$(EXEEXT) *.o
Index: makerules/configure.mk
===================================================================
--- makerules/configure.mk (revision 300)
+++ makerules/configure.mk (working copy)
@@ -74,11 +74,13 @@
WINDRES=windres
CFLAGS+=-mwindows -DWIN32
LDFLAGS+=-lmingw32 -lglu32 -lopengl32 -lopenal32 -ljpeg6b -lpng13
+EXEEXT=.exe
else
DIRSEP=/
RMF=rm -f
WINDRES=windres
LDFLAGS+=-lGLU -lGL -lopenal -ljpeg -lpng
+EXEEXT=
endif
LDFLAGS+=-lmad -lvorbisfile -lvorbis -logg -lphysfs -lSDLmain -lSDL -lSDL_net
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev