Cross Reference: Makefile
xref: /src/usr.sbin/altq/libaltq/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/usr.sbin/altq/libaltq/
Makefile revision 1.1
1PREFIX?=	/usr/local
2SYS_INCLUDES?=	-I/usr/src/sys-altq
3
4LIB=	libaltq.a
5
6OBJS= 	qop.o parser.o quip_server.o qop_cdnr.o qop_errlist.o \
7	qop_conf.o qop_dummy.o qop_cbq.o qop_hfsc.o qop_priq.o \
8	qop_red.o qop_rio.o qop_blue.o qop_wfq.o qop_fifoq.o \
9	qop_priq.o
10
11CFLAGS=		-g -Wall
12CFLAGS+=	-Wpointer-arith -Wcast-qual -Wmissing-prototypes -ansi
13DEFINES=	-DALTQ $(SYS_DEFINES)
14INCLUDES=	-I. $(SYS_INCLUDES)
15
16all: $(LIB)
17
18install: $(LIB)
19	$(INSTALL) $(COPY) -m 0444 $(LIB) $(PREFIX)/lib
20
21libaltq.a: libaltq.a($(OBJS))
22	rm -f $@
23	ar cq $@ `lorder $(OBJS) | tsort -q`
24	ranlib $@
25
26.c.o: 
27	$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -c $*.c
28
29clean:;		-rm -f $(LIB) *.a *.o core *.core *.bak ,* *~ "#"*
30
31
32
33
34
35
36
37
38
39

Indexes created Mon Jan 26 14:10:17 GMT 2026