Rev | Line | |
---|
[9] | 1 | # Makefile for inet.
|
---|
| 2 |
|
---|
| 3 | # Directories
|
---|
| 4 | g = generic
|
---|
| 5 |
|
---|
| 6 | # Programs, flags, and libraries
|
---|
| 7 | CC = cc
|
---|
| 8 | CPPFLAGS = -I. -D_MINIX
|
---|
| 9 | CFLAGS = $(OPT) $(CPPFLAGS)
|
---|
| 10 | LDFLAGS =
|
---|
| 11 | LIBS = -lsys -lsysutil
|
---|
| 12 |
|
---|
| 13 | .c.o:
|
---|
| 14 | $(CC) $(CFLAGS) -o $@ -c $<
|
---|
| 15 |
|
---|
| 16 | OBJ = buf.o clock.o inet.o inet_config.o \
|
---|
| 17 | mnx_eth.o mq.o qp.o sr.o stacktrace.o \
|
---|
| 18 | $g/udp.o $g/arp.o $g/eth.o $g/event.o \
|
---|
| 19 | $g/icmp.o $g/io.o $g/ip.o $g/ip_ioctl.o \
|
---|
| 20 | $g/ip_lib.o $g/ip_read.o $g/ip_write.o \
|
---|
| 21 | $g/ipr.o $g/rand256.o $g/tcp.o $g/tcp_lib.o \
|
---|
| 22 | $g/tcp_recv.o $g/tcp_send.o $g/ip_eth.o \
|
---|
| 23 | $g/ip_ps.o $g/psip.o \
|
---|
| 24 | minix3/queryparam.o sha2.o
|
---|
| 25 |
|
---|
| 26 | all: inet
|
---|
| 27 |
|
---|
| 28 | inet: $(OBJ)
|
---|
| 29 | $(CC) -o $@ $(LDFLAGS) $(OBJ) version.c $(LIBS)
|
---|
| 30 |
|
---|
| 31 | install: inet
|
---|
| 32 | install -c $? /usr/sbin/inet
|
---|
| 33 |
|
---|
| 34 | clean:
|
---|
| 35 | rm -f $(OBJ) inet *.bak
|
---|
| 36 |
|
---|
| 37 | depend:
|
---|
| 38 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c generic/*.c > .depend
|
---|
| 39 |
|
---|
| 40 | # Include generated dependencies.
|
---|
| 41 | include .depend
|
---|
| 42 |
|
---|
| 43 | #
|
---|
| 44 | # $PchId: Makefile.mnx3,v 1.1 2005/06/28 14:28:45 philip Exp $
|
---|
| 45 | #
|
---|
Note:
See
TracBrowser
for help on using the repository browser.