GophHub - go4retro/tcpser/Makefile.ip232


Raw File

    1	SRC=src
    2	SRCS = $(SRC)/ip232test.c $(SRC)/debug.c $(SRC)/ip.c $(SRC)/util.c $(SRC)/ip232.c $(SRC)/dce.c $(SRC)/serial.c
    3	OBJS = $(SRC)/ip232test.o $(SRC)/debug.o $(SRC)/ip.o $(SRC)/util.o $(SRC)/ip232.o $(SRC)/dce.o $(SRC)/serial.o
    4	CC ?= gcc
    5	DEF = 
    6	CFLAGS = -O $(DEF) -Wall
    7	LDFLAGS = -lpthread
    8	DEPEND = makedepend $(DEF) $(CFLAGS)
    9	
   10	all:	ip232test
   11	
   12	#.o.c:
   13	#	$(CC) $(CFLAGS) -c $*.c
   14	
   15	$(SRCS):
   16		$(CC) $(CFLAGS) -c $*.c
   17	
   18	ip232test: $(OBJS)
   19		$(CC) $(OBJS) $(LDFLAGS) -g -o $@
   20	
   21	depend: $(SRCS)
   22		$(DEPEND) $(SRCS)
   23	
   24	clean:
   25		$(RM) ip232test *.bak $(SRC)/*~ $(SRC)/*.o $(SRC)/*.bak core
   26	
   27	
   28	# DO NOT DELETE THIS LINE -- make depend depends on it.
   29	
   30	

Generated by GNU Enscript 1.6.6, and GophHub 1.3.