-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (24 loc) · 845 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PRJNAME = CharCam
OBJS = BaseApplication.o CharCam.o
CC = g++
DEBUG = -g
CFLAGS = -Wall -c $(DEBUG)
CFLAGS += $(shell pkg-config --cflags OGRE OIS)
LFLAGS = -Wall $(DEBUG)
LFLAGS += $(shell pkg-config --libs OGRE OIS) -lboost_system
SRCFLDR = src
BINFLDR = bin
APP = $(shell echo $(PRJNAME) | tr '[:upper:]' '[:lower:]')
OgreApp : $(OBJS) install
$(CC) $(LFLAGS) $(OBJS) -o $(BINFLDR)/$(APP)
$(PRJNAME).o : $(SRCFLDR)/BaseApplication.h $(SRCFLDR)/BaseApplication.cpp $(SRCFLDR)/$(PRJNAME).h $(SRCFLDR)/$(PRJNAME).cpp
$(CC) $(CFLAGS) $(SRCFLDR)/$(PRJNAME).cpp
BaseApplication.o : $(SRCFLDR)/BaseApplication.h $(SRCFLDR)/BaseApplication.cpp
$(CC) $(CFLAGS) $(SRCFLDR)/BaseApplication.cpp
install :
cp -r $(SRCFLDR)/dist/media $(BINFLDR)
cp -r $(SRCFLDR)/dist/bin/* $(BINFLDR)
clean:
\rm *.o *~ $(APP)
tar:
tar cfv *.cpp *.h Makefile