equal
deleted
inserted
replaced
8 SET(CMAKE_C_FLAGS_RELEASE "-g -ggdb") |
8 SET(CMAKE_C_FLAGS_RELEASE "-g -ggdb") |
9 |
9 |
10 # C-Definitions |
10 # C-Definitions |
11 ADD_DEFINITIONS(-Wall -O2 -ansi -pedantic) |
11 ADD_DEFINITIONS(-Wall -O2 -ansi -pedantic) |
12 ADD_DEFINITIONS(-D_XOPEN_SOURCE=500) |
12 ADD_DEFINITIONS(-D_XOPEN_SOURCE=500) |
13 ADD_DEFINITIONS(-DBOT_VERSION=0.96) |
13 ADD_DEFINITIONS(-DBOT_VERSION=0.97) |
14 |
14 |
15 # Includes |
15 # Includes |
16 INCLUDE_DIRECTORIES(../include) |
16 INCLUDE_DIRECTORIES(../include) |
17 |
17 |
18 # Target Definitions |
18 # Target Definitions |
20 ADD_EXECUTABLE(dbtool database.c dbtool.c) |
20 ADD_EXECUTABLE(dbtool database.c dbtool.c) |
21 |
21 |
22 # Install Rules |
22 # Install Rules |
23 INSTALL(TARGETS mcbot RUNTIME DESTINATION /usr/sbin) |
23 INSTALL(TARGETS mcbot RUNTIME DESTINATION /usr/sbin) |
24 INSTALL(TARGETS dbtool RUNTIME DESTINATION /usr/bin) |
24 INSTALL(TARGETS dbtool RUNTIME DESTINATION /usr/bin) |
25 INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/nobody/data/locale) |
25 INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/mcbot/data/locale) |
26 INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/ |
26 INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/ |
27 RENAME mcbot) |
27 RENAME mcbot) |
28 INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION /usr/lib/cgi-bin/) |
28 INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION /usr/lib/cgi-bin/) |
29 |
29 |
30 # Search required programs |
30 # Search required programs |