summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9d4e4d6bf8922dce0455959d7119c28395ddb103 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PREFIX:=/usr/local
CFLAGS=-pedantic -Wall -ggdb -I/usr/local/include -I$(PREFIX)/include

all: segfault libhack.so spacify

libhack.so: libhack.o
	ld -shared -o libhack.so libhack.o

again: clean all

segfault: LDFLAGS=-L/usr/local/lib -L$(PREFIX)/lib -lirc -lhashtable -lgcc_s -lidc -ldl
segfault: segfault.c access.h

clean:
	rm -f segfault

install: all
	install segfault /usr/local/bin/
	install spacify	/usr/local/bin/