INCPATH=../
endif
+CONFIGURED=1
CFLAGS=
LEX=flex
MFLAGS=
endif
MFLAGS+=BUILDID=$(BUILDID)
+default: all
+
.SUFFIXES: .so .y .l
+-include $(wildcard *.d)
+
+.c.o:
+ $(CC) $(CFLAGS) -MMD -c -o $@ $<
+
.o.so:
- $(CC) -nostartfiles -shared -o $@ $^ $(LDFLAGS)
+ $(CC) -nostartfiles -Wl,--export-dynamic -shared -o $@ $^ $(LDFLAGS)
.y.c: ;
.l.c: ;
-default: all
-
CFLAGS+=-I./ -DBUILDID=$(BUILDID) -fPIC
CFLAGS+=-Wall -g -finline-functions -funroll-loops -Werror=format-security
-ifndef CLANG
ifndef NOC99
CFLAGS+=-std=c99
endif
-CFLAGS+=-export-dynamic
-endif