makefile.w32

来自「gsac程序包」· W32 代码 · 共 112 行

W32
112
字号
######	Makefile for CALPLOT/src/cmd##	Uncomment the region for your machine#	Indicate the plot drivers to be compiled#######	NOTE FOR PNG Graphics you miust define the locations of#	libz.a or libz.so and #	libpng.a or libpng.so###########	MINGW gcc/g77 compielrs for WIN32#####CCMP          = gcc -DMSDOSLINK          = gcc RM            = rm -f MV            = mv DEST          = ../../../binLDFLAGS       = LDFLAG        = -lmXDIR          = /usr/X11R6/libXVINC         = ../XVIG/includeLIBDIR        = ../../../libMSWLDR        = -Wl,--subsystem,console $(LIBDIR)/lg.a -mwindows#PNGINC = -I/usr/include#PNGLIB = -L/usr/lib -lpng       # dynamically linked against libpng#ZINC = -I/usr/include#ZLIB = -L/usr/lib -lz           # dynamically linked against zlib#INCS = $(PNGINC) $(ZINC)#WLIBS = $(PNGLIB) $(ZLIB)ALL = plotdbg plotnps reframe plotgif plotmsw  clean######	Do not change anything bellow here#####.c.o:	$(CCMP) -c $<docp:	cp ../cmd/*.c .	cp ../include/*.h .all: $(ALL)######	define the object dependencies#####DBGOBJS = plotdriv.o  dbsubs.oREFOBJS = reframe.o dpsubs.oNPSOBJS = plotdriv.o plotgen.o lineclip.o  zzpoint.o txtlbl.o symvec.o \	rline.o rlinevec.o plotnps.oMSWOBJS = plotdriv.o plotmsw.o            plotgen.o lineclip.o  \	symvec.o rline.o           rlinevec.o GIFOBJS = plotdriv.o plotgen.o lineclip.o            txtlbl.o symvec.o \	rline.o plotgif.oPNGOBJS = plotdriv.o plotgen.o lineclip.o            txtlbl.o symvec.o \	rline.o plotpng.o writepng.o# Make the executables #plotdbg:	$(DBGOBJS)	$(CCMP) $(DBGOBJS) -o plotdbg.exe	$(MV) plotdbg.exe $(DEST)plotnps:       $(NPSOBJS)	$(CCMP) $(NPSOBJS) $(LDFLAG) -o plotnps.exe	$(MV) plotnps.exe $(DEST)plotmsw.o:	plotmsw.c	$(CCMP) -c -DMSW  -I$(XVINC) plotmsw.cxvigmsw.o:	xvigmsw.c	$(CCMP) -c -DMSW -I$(XVINC)  -I../../../include xvigmsw.cplotmsw:       $(MSWOBJS) xvigmsw.o	$(CCMP) $(MSWOBJS) xvigmsw.o  $(MSWLDR) -o plotmsw.exe	$(MV) plotmsw.exe $(DEST)plotgif:       $(GIFOBJS)	$(CCMP) $(GIFOBJS) $(LDFLAG) -o plotgif.exe	$(MV) plotgif.exe $(DEST)writepng.o:	writepng.c	$(CCMP) -O -Wall $(INCS) -c writepng.cplotpng.o:	plotpng.c	$(CCMP) -O  $(INCS) -c plotpng.cplotpng:       $(PNGOBJS)	$(CCMP) $(PNGOBJS) $(LDFLAG) $(WLIBS) -o plotpng.exe	$(MV) plotpng.exe $(DEST)reframe:	$(REFOBJS)	$(CCMP) $(REFOBJS) -o reframe.exe	mv reframe.exe $(DEST)clean:	$(RM) *.o 	$(RM) *.c	$(RM) *.h

⌨️ 快捷键说明

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