24 lines
339 B
Makefile
24 lines
339 B
Makefile
#!/bin/make -f
|
|
|
|
PREFIX := .
|
|
|
|
CP := cp -f
|
|
|
|
CFLAGS := -std=c89 -Wall -Wextra -Wpedantic -Wshadow -Wundef
|
|
CPPFLAGS := -D_FORTIFY_SOURCE=2
|
|
|
|
export CFLAGS
|
|
export CPPFLAGS
|
|
|
|
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
|