robertsim007: Finally, I got a Linux makefile. This has worked with all of the testing I have done.

This commit is contained in:
robertsim007 2005-08-23 04:35:27 +00:00
parent ec94ad6394
commit e9564a0ed9
1 changed files with 30 additions and 0 deletions

30
torque-ide/linux/Makefile Normal file
View File

@ -0,0 +1,30 @@
CXXFLAGS+=-Wall -fsigned-char `wx-config --cppflags`
CFLAGS+=-Wall -fsigned-char `wx-config --cppflags`
# -ansi -pedantic cause warnings from some compilers [wx uses long long]
LDFLAGS+=`wx-config --ldflags`
# STATICFLAGS=-Wl,-Bstatic
STATICFLAGS=-static
LIBS+=`wx-config --libs core,base,stc`
BINARY=torque-ide
INSTALL=install
ifeq ($(DEBUG), 1)
CXXFLAGS+=-g -Werror
endif
OBJ=../src/torqueideabout.o ../src/torqueideapp.o ../src/torqueideframe.o ../src/torqueideprefs.o ../src/torqueidestc.o
all: torqueide
torqueide: $(OBJ)
$(CXX) $(LDFLAGS) -o ../$(BINARY) $(OBJ) $(LIBS)
clean:
rm -f ../*.o core $(BINARY)
v: clean all
valgrind ../$(BINARY)
a: all
../$(BINARY)