Raw File
SRC=src
SRCS = $(SRC)/ip232test.c $(SRC)/debug.c $(SRC)/ip.c $(SRC)/util.c $(SRC)/ip232.c $(SRC)/dce.c $(SRC)/serial.c
OBJS = $(SRC)/ip232test.o $(SRC)/debug.o $(SRC)/ip.o $(SRC)/util.o $(SRC)/ip232.o $(SRC)/dce.o $(SRC)/serial.o
CC ?= gcc
DEF =
CFLAGS = -O $(DEF) -Wall
LDFLAGS = -lpthread
DEPEND = makedepend $(DEF) $(CFLAGS)
all: ip232test
#.o.c:
# $(CC) $(CFLAGS) -c $*.c
$(SRCS):
$(CC) $(CFLAGS) -c $*.c
ip232test: $(OBJS)
$(CC) $(OBJS) $(LDFLAGS) -g -o $@
depend: $(SRCS)
$(DEPEND) $(SRCS)
clean:
$(RM) ip232test *.bak $(SRC)/*~ $(SRC)/*.o $(SRC)/*.bak core
# DO NOT DELETE THIS LINE -- make depend depends on it.
Generated by GNU Enscript 1.6.6, and GophHub 1.3.