aboutsummaryrefslogtreecommitdiffstats
path: root/troff/libhnj/Makefile.mk
blob: 68d0d84abbc3c21c33db886cf5404ae3f9c64311 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FLAGS = -I../../include

.c.o:
	$(CC) $(_CFLAGS) $(FLAGS) -c $<

OBJ = hnjalloc.o hyphen.o

all: libhnj.a test

libhnj.a: $(OBJ)
	$(AR) crs $@ $(OBJ)

test: test.o libhnj.a
	$(CC) $(_CFLAGS) $(_LDFLAGS) test.o -L. -lhnj -o test

install:

clean:
	rm -f $(OBJ) test test.o core log *~

mrproper: clean
	rm -f libhnj.a