?? makefile.ex
字號:
# makefile for ESPS programs# @(#)makefile.ex 1.1 7/13/87 ESI## The following macros are defined by the "emake" environment:## PROGCFLAGS - C flags for ESPS programs. You can add others# such as -g or -O. PROGCFLAGS includes the -I# option for the correct ESPS include directories.# LINTFLAGS - Lint flags. # BINDIR - Directory to put the binary in.# OLDBIN - Directory to move the old binary into.# PROGMOD - Access mode of the binary.# MANDIR - Manual directory. (stick man page into $(MANDIR)/man1# MANMOD - Access mode of the man page# LINT - Name of the lint program## NOTE: You might have to add additional libraries (eg. -lmr)# to the "cc" statement.# # This makefile assumes that the man page has the exact# same name as the binary. This might not always be true;# so you may need to adjust the "install" part.# # add your C options here. Here I added -g; you can replace with# -O if desired, eg. here I added -g#CFLAGS = -g $(PROGCFLAGS)## list your .o files here (remove a.o and b.o)OBJS = a.o b.o# list your sources here (remove a.c and b.c)SRCS = a.c b.c## name the program here (remove alpha)PROGNAME = alpha$(PROGNAME): $(SPSLIB) $(OBJS) cc $(CFLAGS) $(OBJS) $(SPSLIB) -lm -o $(PROGNAME)## list .o file dependecies here, $(SINC) is the parent of the# esps include directories (remove these two lines)# eg.a.o $(SINC)/esps.hb.o $(SINC)/esps.hinstall: $(PROGNAME) -strip $(PROGNAME) -mv $(BINDIR)/$(PROGNAME) $(OLDBIN)/$(PROGNAME) -chmod $(PROGMOD) $(OLDBIN)/$(PROGNAME) cp $(PROGNAME) $(BINDIR)/$(PROGNAME) chmod $(PROGMOD) $(BINDIR)/$(PROGNAME) -diffmk $(MANDIR)/man1/$(PROGNAME).1 $(PROGNAME).1 man.diff @echo diffmked man page left in man.diff cp atofilt.1 $(MANDIR)/man1/$(PROGNAME).1 chmod 0640 $(MANDIR)/man1/$(PROGNAME).1clean: -rm -f $(PROGNAME) $(OBJS) lint: $(SRCS) $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIB) > lint
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -