summaryrefslogtreecommitdiff
path: root/Makefile
blob: f567c38b9f8e390ba007894b88dc9f43d73f0c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.POSIX:

CFLAGS = -O 1
LDFLAGS =
OUTNAME = libfemtokit.a
TESTFILE = hello.c

all: clean build
	ar -rs $(OUTNAME) *.o

build:

clean:
	-rm test *.o *.a

install: all
	mv -f $(OUTNAME) /usr/lib

test: all
	c99 -l libfemtokit.a -o test test/$(TESTFILE)

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