summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: af7d5530b5f78c8b8af2bd03d08ad455c0059c46 (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	= mpn_add.o mpn_cmp.o mpn_dump.o mpn_init.o mpn_mul.o

TESTS	= test

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

all: $(TESTS)

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

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