robertsim007: Finally, I got a Linux makefile. This has worked with all of the testing I have done.
This commit is contained in:
parent
ec94ad6394
commit
e9564a0ed9
|
@ -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)
|
Loading…
Reference in New Issue