PROGRAM = embedded
OBJECTS = $(PROGRAM).o
-CXX = $(shell wx-config --cxx)
+WX_CFG = wx-config
+PYVER = 2.4
+
+EXTRAINC=-I../../include -I/usr/include/python$(PYVER)
+EXTRALIB=-L/usr/lib/python$(PYVER)/config -lpython$(PYVER)
+CXX = $(shell $(WX_CFG) --cxx)
.SUFFIXES: .o .cpp
.cpp.o :
- $(CXX) -c `wx-config --cxxflags` -o $@ $<
+ $(CXX) -c -g `$(WX_CFG) --cxxflags` $(EXTRAINC) -o $@ $<
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
- $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
+ $(CXX) -g -o $(PROGRAM) $(OBJECTS) `$(WX_CFG) --libs` $(EXTRALIB)
clean:
rm -f *.o $(PROGRAM)