Commit 93624918 authored by Kristin Wright's avatar Kristin Wright

Dave embarrassed me into redoing this which is a good thing...somebody had to.

parent aa430570
PROGS = cli serv
OBJS=get_ifi_info.o get_rtaddrs.o net_rt_iflist.o sock_ntop.o util.o
SOBJS=serv_listen.o recvfromflags.o if_indextoname.o reply.o serv.o forw_requests.o
COBJS=cli.o
CFLAGS += -Wall -g
CC=gcc
all: ${PROGS}
all: cli serv
cli:
gcc -g -c -Wall cli.c
gcc -g -c -Wall get_ifi_info.c
gcc -g -c -Wall get_rtaddrs.c
gcc -g -c -Wall net_rt_iflist.c
gcc -g -c -Wall sock_ntop.c
gcc -g -c -Wall util.c
gcc -g -Wall -o cli cli.o get_ifi_info.o \
util.o sock_ntop.o net_rt_iflist.o \
get_rtaddrs.o
cli: ${OBJS} ${COBJS}
$(CC) $(OBJS) $(COBJS) -o cli
serv:
gcc -g -c -Wall serv_listen.c
gcc -g -c -Wall sock_ntop.c
gcc -g -c -Wall recvfromflags.c
gcc -g -c -Wall if_indextoname.c
gcc -g -c -Wall get_ifi_info.c
gcc -g -c -Wall get_rtaddrs.c
gcc -g -c -Wall net_rt_iflist.c
gcc -g -c -Wall recvfromflags.c
gcc -g -c -Wall reply.c
gcc -g -c -Wall serv.c
gcc -g -c -Wall util.c
gcc -g -c -Wall forw_requests.c
gcc -o serv serv.o serv_listen.o sock_ntop.o \
get_rtaddrs.o get_ifi_info.o util.o \
net_rt_iflist.o if_indextoname.o \
reply.o forw_requests.o recvfromflags.o
serv: ${OBJS} ${SOBJS}
$(CC) $(OBJS) $(COBJS) -o serv
clean:
/bin/rm -rf $(OBJS) cli serv
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment