From: <bo...@us...> - 2003-11-26 01:21:43
|
Update of /cvsroot/sharedaemon/core/src In directory sc8-pr-cvs1:/tmp/cvs-serv14546 Modified Files: Makefile.cvs Log Message: Improved Makefile.cvs (now Win32 executables get extension .exe) Index: Makefile.cvs =================================================================== RCS file: /cvsroot/sharedaemon/core/src/Makefile.cvs,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Makefile.cvs 22 Nov 2003 03:22:56 -0000 1.11 +++ Makefile.cvs 26 Nov 2003 01:21:39 -0000 1.12 @@ -18,8 +18,6 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -all: test - CPPFLAGS = # Ok, you have to tell me, what OS you are using @@ -52,8 +50,19 @@ CXX = g++ -b i686-mingw32msvc CC = gcc -b i686-mingw32msvc LDFLAGS += -lwsock32 +BINARY = test.exe +endif + +ifdef LINUX +BINARY = test +endif + +ifdef MAXOSX +BINARY = test endif +all: $(BINARY) + CFLAGS += -g -Wall -O3 -std=c99 CXXFLAGS += -g -Wall -O3 CPPFLAGS += -DXMULE2 @@ -65,6 +74,9 @@ ParseClass.oo mprintf.o Ed2kConnection.oo test: $(OBJS) + $(CXX) $^ $(LDFLAGS) -o $@ + +test.exe: $(OBJS) $(CXX) $^ $(LDFLAGS) -o $@ %.o: %.c |