Debian Codegraph @

Makefile

raw symbols SCIP
1 CC?=gcc
2 PKG_CONFIG?=pkg-config
3
4 CFLAGS?=-g -O2 -Wall
5 LDFLAGS?=
6
7 PREFIX?=/usr/local
8
9 # arch hardening
10 #CPPFLAGS+=-D_FORTIFY_SOURCE=2
11 #CFLAGS+=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt
12 #LDFLAGS+=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
13
14 # arch & debian hardening workaround
15 LDFLAGS+=-Wl,--no-as-needed
16
17 CFLAGS+=$(shell $(PKG_CONFIG) x11 --cflags)
18 LDFLAGS+=$(shell $(PKG_CONFIG) x11 --libs)
19
20 CFLAGS+=$(shell $(PKG_CONFIG) imlib2 --cflags)
21 LDFLAGS+=$(shell $(PKG_CONFIG) imlib2 --libs)
22
23 CFLAGS+=$(shell $(PKG_CONFIG) xinerama --cflags)
24 LDFLAGS+=$(shell $(PKG_CONFIG) xinerama --libs)
25
26 all: hsetroot hsr-outputs
27
28 hsetroot: hsetroot.o
29
30 hsr-outputs: hsr-outputs.o
31
32 install: hsetroot hsr-outputs
33 install -st $(PREFIX)/bin/ hsetroot
34 install -st $(PREFIX)/bin/ hsr-outputs
35
36 clean:
37 rm -f *.o hsetroot hsr-outputs