tcpser/Makefile.solaris
2016-05-24 09:06:48 -07:00

29 lines
894 B
Makefile

SRC=src
SRCS = $(SRC)/bridge.c $(SRC)/debug.c $(SRC)/getcmd.c $(SRC)/ip.c $(SRC)/init.c $(SRC)/modem_core.c $(SRC)/nvt.c $(SRC)/serial.c $(SRC)/ip232.c $(SRC)/util.c $(SRC)/phone_book.c $(SRC)/shared.c $(SRC)/tcpser.c $(SRC)/line.c $(SRC)/dce.c
OBJS = $(SRC)/bridge.o $(SRC)/debug.o $(SRC)/getcmd.o $(SRC)/ip.o $(SRC)/init.o $(SRC)/modem_core.o $(SRC)/nvt.o $(SRC)/serial.o $(SRC)/ip232.o $(SRC)/util.o $(SRC)/phone_book.o $(SRC)/shared.o $(SRC)/tcpser.o $(SRC)/dce.o $(SRC)/line.o
CC = gcc
DEF =
CFLAGS = -O $(DEF) -Wall
LDFLAGS = -lpthread -lsocket -lnsl -lresolv
DEPEND = makedepend $(DEF) $(CFLAGS)
all: tcpser
#.o.c:
# $(CC) $(CFLAGS) -c $*.c
$(SRCS):
$(CC) $(CFLAGS) -c $*.c
tcpser: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS)
depend: $(SRCS)
$(DEPEND) $(SRCS)
clean:
-rm tcpser *.bak $(SRC)/*~ $(SRC)/*.o $(SRC)/*.bak core
# DO NOT DELETE THIS LINE -- make depend depends on it.