当前位置: 技术问答>linux和unix
谁能帮我把下列makefile作一下注释?万分感谢
来源: 互联网 发布时间:2016-05-03
本文导语: INCLUDES = -I /home/nie/mysrc/inclulde -I /home/nie/mysrc/extern/include -I /home/nie/mysrc/src -I /home/nie/mysrc/libsrc -I. -I.. EXT_CC_OPTS = -DEXT_MODE CPP_REQ_DEFINES = -DMODEL=tunel -DRT -DNUMST=2 ...
INCLUDES = -I /home/nie/mysrc/inclulde
-I /home/nie/mysrc/extern/include
-I /home/nie/mysrc/src
-I /home/nie/mysrc/libsrc
-I.
-I..
EXT_CC_OPTS = -DEXT_MODE
CPP_REQ_DEFINES = -DMODEL=tunel -DRT -DNUMST=2
-DTID01EQ=1 -DNCSTATES=0
-DMT=0 -DHAVESTDIO
RTM_CC_OPTS=-DUSE_RTMODEL
CFLAGS=-O-g
CFLAGS+=$(CPP_REQ_DEFINES)
CFLAGS+=$(EXT_CC_OPTS)
CFLAGS+=$(RTM_CC_OPTS)
SRCS=tunel.c rt_sim.c rt_nonfinite.c grt_main.c rt_logging.c
ext_svr.c updown.c ext_svr_transport.c ext_work.c
OBJS=$(SRCS:.c=.o)
RM=rm -f
CC=gcc
LD=gcc
all:tunel
%.o:%.c
%(CC)-c -o %@$(CFLAGS)$(INCLUDES)$
-I /home/nie/mysrc/extern/include
-I /home/nie/mysrc/src
-I /home/nie/mysrc/libsrc
-I.
-I..
EXT_CC_OPTS = -DEXT_MODE
CPP_REQ_DEFINES = -DMODEL=tunel -DRT -DNUMST=2
-DTID01EQ=1 -DNCSTATES=0
-DMT=0 -DHAVESTDIO
RTM_CC_OPTS=-DUSE_RTMODEL
CFLAGS=-O-g
CFLAGS+=$(CPP_REQ_DEFINES)
CFLAGS+=$(EXT_CC_OPTS)
CFLAGS+=$(RTM_CC_OPTS)
SRCS=tunel.c rt_sim.c rt_nonfinite.c grt_main.c rt_logging.c
ext_svr.c updown.c ext_svr_transport.c ext_work.c
OBJS=$(SRCS:.c=.o)
RM=rm -f
CC=gcc
LD=gcc
all:tunel
%.o:%.c
%(CC)-c -o %@$(CFLAGS)$(INCLUDES)$