21 lines
322 B
Makefile
21 lines
322 B
Makefile
#!/bin/make -f
|
|
|
|
PREFIX := .
|
|
|
|
CP := cp -f
|
|
|
|
export CFLAGS := -std=c89 -Wall -Wextra -Wpedantic -Wshadow -Wundef
|
|
export CPPFLAGS := -D_FORTIFY_SOURCE=2
|
|
|
|
all: plug/libplug.so src/plugin
|
|
|
|
plug/libplug.so:
|
|
make -C plug
|
|
$(CP) $@ $(PREFIX)
|
|
|
|
src/plugin:
|
|
make -C src
|
|
$(CP) $@ $(PREFIX)
|
|
|
|
.PHONY: all plug/libplug.so src/plugin
|