rosenrot/makefile

19 lines
360 B
Makefile
Raw Normal View History

2022-05-09 21:03:14 +00:00
CC = clang
2022-05-10 21:47:17 +00:00
CFLAGS = `pkg-config --cflags gtk4 webkit2gtk-5.0 x11`
LIBS = `pkg-config --libs gtk4 webkit2gtk-5.0 x11`
2022-05-09 21:03:14 +00:00
all:
2022-05-11 00:26:46 +00:00
${CC} -fPIC -O3 -o rose *.c $(CFLAGS) $(LIBS)
2022-05-10 15:35:37 +00:00
strip ./rose
install: all
cp -uf ./rose /usr/local/bin/rose
2022-05-09 21:03:14 +00:00
clean:
rm -f rose compile_flags.txt
flags:
echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt
.SILENT: all clean flags