Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / network / common / C / netstat / Makefile
blobb11110af74ca9cc5fbc87f08fbfed70dcc76f444
1 INSTALL_DEST := /SYS/MOSNet
3 PROG = netstat
4 SRCS = if.c inet.c iso.c main.c mbuf.c mroute.c ns.c route.c \
5 unix.c
6 CFLAGS = -c -noixemul -I../../include
7 LDADD = -noixemul -L../../libkvm -lnet -lmiami -lkvm
9 OBJS = $(SRCS:.c=.o)
11 all: $(PROG)
13 $(PROG): $(OBJS)
14 gcc $(OBJS) -o $@ $(LDADD)
15 strip --remove-section .comment $@
17 $(OBJS): %.o: %.c
18 gcc $(CFLAGS) $< -o $@
20 clean:
21 rm -f $(PROG) *.o
23 install: $(PROG)
24 mkdir -p $(INSTALL_DEST)/C
25 cp $(PROG) $(INSTALL_DEST)/C/
27 package: all
28 mkdir -p $(PKG_DEST)/C
29 cp $(PROG) $(PKG_DEST)/C/