Full change for foolish misunderstanding.
[psg.git] / src / Makefile
blob2a079ae8ef2d3328c8f5a3db93f7ff4d4f8f64b4
1 DEFINES =
2 LIBS = OGRE CEGUI OIS CEGUI-OGRE
3 CXX = g++
4 CXXFLAGS = -g $(shell pkg-config --cflags $(LIBS)) $(DEFINES)
5 LD = g++
6 LDFLAGS = $(shell pkg-config --libs $(LIBS))
7 OPTS = -Iinclude
9 CPP_SRCS = \
10 phisics.cpp \
11 application.cpp \
12 ui.cpp \
13 rules.cpp
15 OBJS = $(CPP_SRCS:.cpp=.o)
17 psg: $(OBJS) Makefile
18 $(CXX) $(CXXFLAGS) $(LDFLAGS) -o psg $(OBJS)
20 .cpp.o: Makefile
21 $(CXX) -c $(CXXFLAGS) $(OPTS) -o $@ $<
23 clean:
24 rm -f *.o psg
26 all: psg