makefile.in

来自「UCL Common Code Library Routines comm」· IN 代码 · 共 44 行

IN
44
字号
#
# Makefile for the common code library project. 
# This probably requires GNU make.
#

COMMONLIB=uclmmbase
COMMONSRC=../src
COMMONTGT = $(COMMONSRC)/lib$(COMMONLIB).a

DEFS   = @DEFS@
CFLAGS = -I$(COMMONSRC) @CFLAGS@ $(DEFS) 
LIBS   = -L../src @LIBS@ 
CC     = @CC@

OBJS = test_base64.o test_des.o test_md5.o test_net_udp.o \
       test_memory.o test_mbus_parser.o test_mbus_addr.o  \
       test.o

SRCS = $(OBJS:%.o=%.c)

all: test-libcommon

test-libcommon: $(OBJS) $(COMMONTGT)
	$(CC) $(OBJS) $(CFLAGS) $(COMMONTGT) $(LIBS) -o test-libcommon

.c.o:
	$(CC) $(CFLAGS) $(INC) -c $<

clean:
	-rm -f $(OBJS) tags test-libcommon

distclean:	clean
	-rm -f Makefile

etags:
	etags *.[ch]

ctags:
	ctags *.[ch]

depend: $(SRCS)
	makedepend $(DEFS) $(INC) $(SRCS)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?