/* *author:davidlin *date:2014-12-10pm *email: [email protected] or [email protected] *world:the City of SZ, in China *ver:000.000.001 *history:editor time Do * 1) Linpeng 2014-12-10 created this file! * 2) */#**********************************************# filename:makefile# cmd list: #make #make Debug/d#make asm/a# make clean/c #**********************************************. Phony:all CLEANCC = Gccrm = Rmsudo = Sudodump = Objdumplib =-lpthreadsrcs = $ (wildcard *.c) Objs = EXES = $ ( Patsubst%.c,%, $ (SRCS)) exec = $ (addprefix./, $ (EXES)) EXEC: = $ (Strip $ (EXEC)) LOGS = $ (addsuffix. S, $ (EXEC)) all:$ (CC)-O $ (EXES) $ (SRCS) $ (LIB) Debug d:$ (SUDO) $ (EXEC) ASM a:$ (DUMP)-S $ (EXES) > $ (LOG S) Clean c:$ (RM)-fr $ (OBJS) $ (EXES) $ (LOGS)
Can be used for the following link code makefile
Protocol: How to implement one of the simplest communication protocols (threading simulation)
Auto tool:make-2014-1210-0001