makefile

来自「linux thread programe」· 代码 · 共 46 行

TXT
46
字号
############################################################ An example source module to accompany...## "Using POSIX Threads: Programming with Pthreads"#     by Brad nichols, Dick Buttlar, Jackie Farrell#     O'Reilly & Associates, Inc.############################################################ list/makefile## makefile for the example programs ## Tru64 UNIX compile flagsT64CC = ccT64CFLAGS = -g -std1 -warnprotos -pthreadT64LDFLAGS = -non_sharedT64LDFLAGS_T = ${T64LDFLAGS} -pthread# GCC/Linux compile flagsGNUCC = gccGNUCFLAGS = -g -ansi -Wstrict-prototypesGNULDFLAGS = -staticGNULDFLAGS_T = ${GNULDFLAGS} -pthread#####################################################CC = ${GNUCC}CFLAGS = ${GNUCFLAGS}LDFLAGS = ${GNULDFLAGS}LDFLAGS_T = ${GNULDFLAGS_T}all : llist_test llist_test_threads llist_test_threads_rwllist_test: llist_test.o llist.o llist.h	${CC} ${CFLAGS} ${LDFLAGS} llist.o llist_test.o -o llist_testllist_test_threads: llist_test_threads.o llist_threads.o llist_threads.h	${CC} ${CFLAGS} ${LDFLAGS_T} llist_threads.o llist_test_threads.o -o llist_test_threadsllist_test_threads_rw: llist_test_threads_rw.o llist_threads_rw.o rdwr.o llist_threads_rw.h	${CC} ${CFLAGS} ${LDFLAGS_T} llist_threads_rw.o llist_test_threads_rw.o rdwr.o -o llist_test_threads_rwclean :	rm -f *.o *~ *# core  \	llist llist_test llist_test_threads \	llist_test_threads_rw

⌨️ 快捷键说明

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