⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.sco5

📁 利用c语言编写
💻 SCO5
字号:
CC= cc#should be OK in most situations:CFLAGS= -O -s# HP/UX 9.0X optimized code#CFLAGS= +O3 +Oaggressive +Olibcalls -Aa -D_POSIX_SOURCE -DCHECK +FP VZOUiD# HP/UX 9.0X debugging#CFLAGS= -g -Aa -D_POSIX_SOURCE -DCHECK +FP VZOUiD# nice for gcc#CFLAGS= -O3 -Wall -pedantic -ansi#CFLAGS= -g -Wall -pedantic -ansi# Option -DCHECK checks for numerical problems during rounding of numbers.# It will slow things down a bit.# You can add a -DREAL=<float type> to the CFLAGS, to change the default float# type used in lp_solve (double) to float or 'long double'. However, type float# might be fast on your computer, but it is not accurate enough to solve even# moderately sized problems without running into numerical problems.# The use of long doubles does increase the numerical stability of lp_solve,# if your compiler actually implements them with more bits than a double. But# it slows down things quite a bit.# Choose your favorite or available version of lex and yaccYACC= yacc#especially for linux:#YACC= bison -yLEX= lex#especially for linux:#LEX= flex -lLEXLIB= -ll#especially for linux:#LEXLIB= -lfl#ANSI math lib#MATHLIB= -lM#non-ANSI math lib, should also workMATHLIB= -lmLPKSRC.c= lpkit.c solve.c debug.c read.c readmps.c hash.c presolve.cLEXFILE.l= lex.lYACCFILE.y= lp.yTESTFILES1= lp_examples/*.lpTESTFILES2= lp_examples/*.mpsTARGET=lp_solveLPKLIB=liblpk.aLEXFILE.c= $(LEXFILE.l:.l=.c)YACCFILE.c= $(YACCFILE.y:.y=.c)YACCFILE.o= $(YACCFILE.y:.y=.o)CSOURCES=lpkit.c solve.c debug.c read.c readmps.c lp_solve.c demo.c hash.c presolve.c $(LEXFILE.c) $(YACCFILE.c)COBJ=$(CSOURCES:.c=.o)LPKSRC= $(LPKSRC.c) $(YACCFILE.c)LPKOBJ= $(LPKSRC:.c=.o)HEADERS=lpkit.h lpglob.h patchlevel.h debug.h read.h hash.h declare.h ufortify.h fortify.hall:	demo $(TARGET) lp2mps mps2lp$(COBJ): $(HEADERS)demo:	demo.o $(LPKLIB)	$(CC) -o demo $(CFLAGS) demo.o $(LPKLIB) $(LEXLIB) $(MATHLIB)lp2mps:	lp2mps.o $(LPKLIB)	$(CC) -o lp2mps $(CFLAGS) lp2mps.o $(LPKLIB) $(LEXLIB) $(MATHLIB)mps2lp: mps2lp.o $(LPKLIB)	$(CC) -o mps2lp $(CFLAGS) mps2lp.o $(LPKLIB) $(LEXLIB) $(MATHLIB)$(TARGET): lp_solve.o $(LPKLIB)	$(CC) -o $(TARGET) $(CFLAGS) lp_solve.o $(LPKLIB) $(LEXLIB) $(MATHLIB)purify: lp_solve.o $(LPKLIB)	purify $(CC) -o $(TARGET) $(CFLAGS) lp_solve.o $(LPKLIB) $(LEXLIB) $(MATHLIB)quantify: lp_solve.o $(LPKLIB)	quantify $(CC) -o $(TARGET) $(CFLAGS) lp_solve.o $(LPKLIB) $(LEXLIB) $(MATHLIB)$(LPKLIB): $(LPKOBJ)	ar rv $@ $(LPKOBJ)	ranlib $(LPKLIB)$(YACCFILE.o): $(LEXFILE.c)$(LEXFILE.c): $(LEXFILE.l)	$(LEX) $(LEXFILE.l)	mv lex.yy.c $(LEXFILE.c)$(YACCFILE.c): $(YACCFILE.y)	$(YACC) $(YACCFILE.y)	mv y.tab.c $(YACCFILE.c)test:	-for i in $(TESTFILES1); do\		./$(TARGET) -p -s -S3 -time < $$i > xxx.tmp;\		if diff xxx.tmp lp_examples/`basename $$i .lp`.out > /dev/null; then\			echo "$$i gives the correct result";\		else\			echo "*** $$i gives different result, please check ***";\		fi;\	done;\	for i in $(TESTFILES2); do\		./$(TARGET) -mps -p -s -S3 -time < $$i > xxx.tmp;\		if diff xxx.tmp lp_examples/`basename $$i .mps`.out > /dev/null; then\			echo "$$i gives the correct result";\		else\			echo "*** $$i gives different result, please check ***";\		fi;\	done;\        rm xxx.tmpmktest:	-for i in $(TESTFILES1); do\		./$(TARGET) -p -s -S3 -time < $$i > lp_examples/`basename $$i .lp`.out;\	done;\	for i in $(TESTFILES2); do\		./$(TARGET) -mps -p -s -S3 -time < $$i > lp_examples/`basename $$i .mps`.out;\	done;\$(TARGET).man: $(TARGET).1	nroff -man $(TARGET).1 > $(TARGET).manMANIFEST: clean	ls -lR > MANIFEST; ls -lR > MANIFESTclean:	rm -f *.a *.o TAGS $(LEXFILE.c) $(YACCFILE.c) demo $(TARGET) lp2mps mps2lp .pure .softdebughist datafiledistrib: $(TARGET).man MANIFEST	cd ..; tar -cvf - lp_solve_4.0 | gzip --best > lp_solve_4.0.tar.gzTAGS:	etags *.[chyl]

⌨️ 快捷键说明

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