Cross Reference: Makefile
xref: /src/usr.sbin/altq/altqd/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/usr.sbin/altq/altqd/
Makefile revision 1.1
1PREFIX?=	/usr/local
2SYS_INCLUDES?=	-I/usr/src/sys-altq
3
4PROGS=		altqd
5ALTQD_OBJS= 	altqd.o if_nameindex.o libaltq2.o ../libaltq/libaltq.a
6MAN5=		altq.conf.5
7MAN8=		altqd.8
8
9CFLAGS=		-g -Wall
10CFLAGS+=	-W -Wpointer-arith -Wcast-qual -Wmissing-prototypes -ansi
11DEFINES=	-DALTQ $(SYS_DEFINES)
12INCLUDES=	-I. -I../libaltq $(SYS_INCLUDES)
13
14all: $(PROGS)
15
16install: $(PROGS)
17	$(INSTALL) $(COPY) -m 0755 $(PROGS) $(PREFIX)/bin
18	$(INSTALL) $(COPY) -m 0644 $(MAN5) $(PREFIX)/man/man5
19	$(INSTALL) $(COPY) -m 0644 $(MAN8) $(PREFIX)/man/man8
20
21altqd: $(ALTQD_OBJS)
22	$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -o $@ $(ALTQD_OBJS) $(SYS_LIBS) -lm
23
24.c.o: 
25	$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -c $*.c
26
27clean:;		-rm -f $(PROGS) *.a *.o core *.core *.bak ,* *~ "#"*
28
29
30

Indexes created Fri Dec 12 08:09:37 GMT 2025