File: Makefile

package info (click to toggle)
libradsec 0.0.5-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,576 kB
  • ctags: 1,457
  • sloc: sh: 11,411; ansic: 10,493; perl: 270; makefile: 172
file content (25 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (4)
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 *~