Browse Source

* add backend.[ch] to main binary

master
Alex 'AdUser' Z 9 years ago
parent
commit
0264de9212
  1. 3
      src/CMakeLists.txt
  2. 1
      src/common.h
  3. 1
      src/main.c

3
src/CMakeLists.txt

@ -1,8 +1,9 @@
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(SOURCES "main.c" "logfile.c" "log.c" "matches.c" "ipaddr.c" "filelist.c" "regexps_posix.c" "config.c" "jail.c") set(SOURCES "main.c" "logfile.c" "log.c" "matches.c" "ipaddr.c" "filelist.c" "regexps_posix.c" "config.c" "jail.c" "backend.c")
add_executable(f2b ${SOURCES}) add_executable(f2b ${SOURCES})
target_link_libraries(f2b "dl")
install(TARGETS f2b install(TARGETS f2b
RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")

1
src/common.h

@ -4,6 +4,7 @@
#include <alloca.h> #include <alloca.h>
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <dlfcn.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>

1
src/main.c

@ -4,6 +4,7 @@
#include "regexps.h" #include "regexps.h"
#include "config.h" #include "config.h"
#include "jail.h" #include "jail.h"
#include "backend.h"
int main() { int main() {
printf("Hello world!\n"); printf("Hello world!\n");

Loading…
Cancel
Save