Home | History | Annotate | Line # | Download | only in altqd
Makefile revision 1.1
      1 PREFIX?=	/usr/local
      2 SYS_INCLUDES?=	-I/usr/src/sys-altq
      3 
      4 PROGS=		altqd
      5 ALTQD_OBJS= 	altqd.o if_nameindex.o libaltq2.o ../libaltq/libaltq.a
      6 MAN5=		altq.conf.5
      7 MAN8=		altqd.8
      8 
      9 CFLAGS=		-g -Wall
     10 CFLAGS+=	-W -Wpointer-arith -Wcast-qual -Wmissing-prototypes -ansi
     11 DEFINES=	-DALTQ $(SYS_DEFINES)
     12 INCLUDES=	-I. -I../libaltq $(SYS_INCLUDES)
     13 
     14 all: $(PROGS)
     15 
     16 install: $(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 
     21 altqd: $(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 
     27 clean:;		-rm -f $(PROGS) *.a *.o core *.core *.bak ,* *~ "#"*
     28 
     29 
     30