summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 36bf09a07cd587140d8bf4efeb69d76ac5c9d7a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC	= gcc
CFLAGS	= -g -D_FORTIFY_SOURCE=2 -W -Wall
LDFLAGS	=

LIBOBJ	= pbn_add.o pbn_cmp.o pbn_dump.o pbn_init.o pbn_mul.o

TESTS	= test

.c.o:
	$(CC) $(CFLAGS) -c -o $@ $<

all: $(TESTS)

test: test.o $(LIBOBJ)
	$(CC) $(LDFLAGS) -o $@ $^

clean:
	rm -f $(TESTS) *.o