|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
SHELL=/bin/bash
|
|
|
|
|
OPTFLAGS=-O2 -flto -g
|
|
|
|
|
EXPORTFLAGS=-fvisibility=hidden -fpic -Wl,--export-dynamic
|
|
|
|
|
CPPFLAGS=-std=gnu++11 -I../include
|
|
|
|
|
LIBSFLAGS=-ldl -lpthread
|
|
|
|
|
LIBSFLAGS=-ldl -lpthread $(MODLIBS)
|
|
|
|
|
WARNFLAGS=-Wall
|
|
|
|
|
|
|
|
|
|
CFLAGS=$(OPTFLAGS) $(EXPORTFLAGS) $(WARNFLAGS) $(CPPFLAGS)
|
|
|
|
@ -14,7 +15,7 @@ DEPENDS = $(subst .cpp,.d,$(SOURCE))
|
|
|
|
|
OBJECTS = $(subst .cpp,.o,$(SOURCE))
|
|
|
|
|
|
|
|
|
|
makemap: $(OBJECTS) $(MODOBJECTS) |
|
|
|
|
$(CC) $(LDFLAGS) $(MODLIBS) -o $@ $(OBJECTS) $(MODOBJECTS)
|
|
|
|
|
$(CC) -o $@ $(OBJECTS) $(MODOBJECTS) $(LDFLAGS)
|
|
|
|
|
|
|
|
|
|
include $(DEPENDS) |
|
|
|
|
|
|
|
|
|