summaryrefslogtreecommitdiff
path: root/lib/radius/tests/Makefile
blob: b9d74ad4247257a084329751453a26e70aeab9dd (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
25
#
#  GNU Makefile
#
.PHONY: all clean
all: radattr

HEADERS		:= ../client.h ../radius.h
CFLAGS		:= -g

%.o : %.c
	$(CC) $(CFLAGS) -I.. -I. -c $<

%.o: ${HEADERS}

LIBS	:= -lcrypto -lssl
LDFLAGS = -L.. -lnetworkradius-client

../libnetworkradius-client.a:
	@${MAKE} -C .. libnetworkradius-client.a

radattr: radattr.o ../libnetworkradius-client.a
	${CC} ${LFDLAGS} ${LIBS} -o $@ $^

clean:
	@rm -rf *.o *.a *~