-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.old
66 lines (53 loc) · 2.5 KB
/
Makefile.old
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
CC = g++
CCFLAGS = -Wall -pg -g -O3 -DNDEBUG -fno-omit-frame-pointer -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls
LDFLAGS = -pg -lSDL_image -lSDL_ttf `sdl-config --cflags --libs`
RM = rm -f
MAKE = make
#
# This path has been changed to include the liolib headers
#
INCLUDE = -Iinclude/ext -Iinclude/contrib -Iinclude/core -Iprj/ -Iinclude/contrib/LioLib/lioutilities -Iinclude/contrib/LioLib/lioneuralnet -Iinclude/contrib/LioLib/liobehaviorlib -Iinclude/contrib/LioLib/liogenetics
SRC_C = $(wildcard src/core/*.c src/contrib/*.c src/ext/*.c prj/**/src/*.c)
#
# This path has been changed to compile all sources in the contrib and ext subdirectories
#
SRC_CC = $(wildcard src/core/*.cpp src/contrib/*.cpp src/contrib/**/*.cpp include/contrib/LioLib/liobehaviorlib/src/*.cpp\
include/contrib/LioLib/lioneuralnet/src/*.cpp include/contrib/LioLib/lioutilities/src/*.cpp src/ext/*.cpp src/ext/**/*.cpp prj/**/src/*.cpp)
INCLUDE_H = $(wildcard include/core/**/*.h include/contrib/*.cpp include/contrib/**/*.h include/contrib/LioLib/liobehaviorlib/behaviors/*.h\
include/contrib/LioLib/lioneuralnet/**/*.h include/contrib/LioLib/lioutilities/**/*.h include/ext/**/*.h include/ext/*.h prj/**/include/*.h)
OBJ = $(SRC_C:.c=.o) $(SRC_CC:.cpp=.o)
TARGET = roborobo
.IGNORE:
#.SILENT:
all:
$(MAKE) $(TARGET)
$(TARGET): $(OBJ)
@$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.cpp
@$(CC) -o $@ -c $< $(CCFLAGS) $(INCLUDE)
%.o: %.c
@$(CC) -o $@ -c $< $(CCFLAGS) $(INCLUDE)
clean:
@$(RM) $(OBJ)
distclean:
@$(MAKE) clean
@$(RM) $(TARGET)
snapshot:
clear
make distclean
rm -f roborobo-snapshot.tgz
tar --exclude='._*' --exclude='build' --exclude='.DS_Store' --exclude='datalog_*' --exclude='properties_*' --exclude='roborobo-snapshot.tgz' --exclude='.svn' -cvf - ../`pwd | perl -ne '/.*\/(.*)$$/; print "$$1\n"';`/* | gzip -c > roborobo-snapshot.tgz
@echo =-=-=-=
@echo =-=-=-=
@echo =-=-=-=
@echo Snapshot is created as roborobo-snapshot.tgz
@echo .
@echo All files have been archived except:
@echo - datalog_* and properties_* files are NOT in the archive, wherever they were.
@echo - .svn directories and contents are NOT in the archive
@echo - macosx only: the macosx build directory is NOT in the archive
@echo - macosx only: after uncompressing, re-create the symbolic link in the build/Debug dir.
@echo - note: dont forget to re-compile as a make distclean was performed prior to building the archive
@echo =-=-=-=
@echo =-=-=-=
@echo =-=-=-=