summaryrefslogtreecommitdiff
path: root/wrapper/Makefile
blob: 9ca7761bcd4bc21c645519bea9d75a78cd5de889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC := gcc

CFLAGS = -Wall -Wextra -Os -std=c99 -pedantic -fstack-protector-all
CFLAGS += $(USER_CFLAGS)

LDFLAGS = -shared
LDFLAGS += $(USER_LDFLAGS)

BIN = libhypodermicw.so

all: libhypodermicw.so

$(BIN): ptrace.c
	$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
	ln -rs $@ ../ # GNU extension


clean:
	rm -f $(BIN)
	rm -f ../$(BIN)

.PHONY: all clean