summaryrefslogtreecommitdiff
path: root/package/pipacs/src/Makefile
blob: c3f830be6bb5905389fcc07f23dc259e01034755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CPPFLAGS?=
CFLAGS?=
LDFLAGS?=
EXTRA_CFLAGS := -c -I.
PIPACS_OBJS := pipacs.o parser.o

all: pipacs

%.o: %.c
	$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^

pipacs: $(PIPACS_OBJS)
	$(CC) $(LDFLAGS) -o $@ $^

clean:
	rm -f *.o *.so pipacs