Makefile
changeset 10 d07309450285
parent 8 8d0f25ef038e
child 11 9aa5114326e8
equal deleted inserted replaced
9:bdf20e6eefd7 10:d07309450285
     1 UNAME       := $(shell uname)
     1 UNAME       := $(shell uname)
     2 DEPS         = sqlite3
     2 DEPS         = sqlite3
     3 DEPS_DEBUG   = sqlite3 libprofiler
     3 DEPS_DEBUG   = sqlite3 libprofiler
     4 CFLAGS       = $(shell pkg-config --cflags-only-I --libs-only-L $(DEPS)) -O2
     4 CFLAGS       = -O2 -ansi $(shell pkg-config --cflags-only-I --libs-only-L $(DEPS))
     5 LIBS         = $(shell pkg-config --libs-only-l $(DEPS))
     5 LIBS         = $(shell pkg-config --libs-only-l $(DEPS))
     6 #OBJS         = $(patsubst %.c,%.o,$(wildcard *.c)) parser.o
     6 #OBJS         = $(patsubst %.c,%.o,$(wildcard *.c)) parser.o
     7 OBJS         = accept_loop.o db.o main.o parser.o process.o util.o
     7 OBJS         = accept_loop.o db.o main.o parser.o process.o util.o
     8 RAGEL_FLAGS  = -LCe -G2
     8 RAGEL_FLAGS  = -LCe -G2
     9 
     9 
    29 ########################################################################
    29 ########################################################################
    30 
    30 
    31 # proftools doesn't currently register a .pc file on Ubuntu, hence these
    31 # proftools doesn't currently register a .pc file on Ubuntu, hence these
    32 # Makefile gymnastics
    32 # Makefile gymnastics
    33 ifeq ($(UNAME), Linux)
    33 ifeq ($(UNAME), Linux)
    34 debug: CFLAGS = -ggdb -Wall -DDEBUG -DPROG='"volta (debugmode)"'
    34 debug: CFLAGS = -ggdb -ansi -Wall -DDEBUG -DPROG='"volta (debugmode)"'
    35 debug: LIBS = -lsqlite3 -lprofiler
    35 debug: LIBS = -lsqlite3 -lprofiler
    36 else
    36 else
    37 debug: CFLAGS = -ggdb -Wall -DDEBUG -DPROG='"volta (debugmode)"'\
    37 debug: CFLAGS = -ggdb -ansi -Wall -DDEBUG -DPROG='"volta (debugmode)"'\
    38 	$(shell pkg-config --cflags-only-I --libs-only-L $(DEPS_DEBUG))
    38 	$(shell pkg-config --cflags-only-I --libs-only-L $(DEPS_DEBUG))
    39 debug: LIBS = $(shell pkg-config --libs-only-l $(DEPS_DEBUG))
    39 debug: LIBS = $(shell pkg-config --libs-only-l $(DEPS_DEBUG))
    40 endif
    40 endif
    41 
    41 
    42 debug: RAGEL_FLAGS = -Ce -G2
    42 debug: RAGEL_FLAGS = -Ce -G2