2000-03-14 09:06:41 -05:00
|
|
|
# Purpose: makefile for joytest example (Unix)
|
|
|
|
# Created: 2000-03-14
|
1998-05-20 10:21:00 -04:00
|
|
|
|
2001-11-28 13:10:15 -05:00
|
|
|
CXX = $(shell wx-config --cxx)
|
1998-05-20 10:21:00 -04:00
|
|
|
|
2000-03-14 09:06:41 -05:00
|
|
|
PROGRAM = joytest
|
1998-05-20 10:21:00 -04:00
|
|
|
|
2000-03-14 09:06:41 -05:00
|
|
|
OBJECTS = $(PROGRAM).o
|
1998-05-20 10:21:00 -04:00
|
|
|
|
2000-03-14 09:06:41 -05:00
|
|
|
# implementation
|
|
|
|
|
|
|
|
.SUFFIXES: .o .cpp
|
|
|
|
|
|
|
|
.cpp.o :
|
2001-11-28 13:10:15 -05:00
|
|
|
$(CXX) -c `wx-config --cxxflags` -o $@ $<
|
2000-03-14 09:06:41 -05:00
|
|
|
|
|
|
|
all: $(PROGRAM)
|
|
|
|
|
|
|
|
$(PROGRAM): $(OBJECTS)
|
2001-11-28 13:10:15 -05:00
|
|
|
$(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
|
2000-03-14 09:06:41 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o $(PROGRAM)
|