📄 makefile.uni
字号:
# Targets# make - twidle the options yourself :-)# make cc - standard cc options# make gcc - standard gcc options# make x86-elf - linux-elf etc# make x86-out - linux-a.out, FreeBSD etc# make x86-solaris# make x86-bdsiDIR= rc4TOP= .CC= gccCFLAG= -O3 -fomit-frame-pointerCPP= $(CC) -EINCLUDES=INSTALLTOP=/usr/local/libMAKE= makeMAKEDEPEND= makedependMAKEFILE= Makefile.uniAR= ar rRC4_ENC=rc4_enc.o# or use#RC4_ENC=asm/rx86-elf.o#RC4_ENC=asm/rx86-out.o#RC4_ENC=asm/rx86-sol.o#RC4_ENC=asm/rx86bdsi.oCFLAGS= $(INCLUDES) $(CFLAG)GENERAL=MakefileTEST=rc4testAPPS=rc4speedLIB=librc4.aLIBSRC=rc4_skey.c rc4_enc.cLIBOBJ=rc4_skey.o $(RC4_ENC)SRC= $(LIBSRC)EXHEADER= rc4.hHEADER= $(EXHEADER) rc4_locl.hALL= $(GENERAL) $(SRC) $(HEADER)all: $(LIB) $(TEST) $(APPS)$(LIB): $(LIBOBJ) $(AR) $(LIB) $(LIBOBJ) sh $(TOP)/ranlib.sh $(LIB)# elfasm/rx86-elf.o: asm/rx86unix.cpp $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o# solarisasm/rx86-sol.o: asm/rx86unix.cpp $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s as -o asm/rx86-sol.o asm/rx86-sol.s rm -f asm/rx86-sol.s# a.outasm/rx86-out.o: asm/rx86unix.cpp $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o# bsdiasm/rx86bsdi.o: asm/rx86unix.cpp $(CPP) -DBSDI asm/rx86unix.cpp | as -o asm/rx86bsdi.oasm/rx86unix.cpp: (cd asm; perl rc4-586.pl cpp >rx86unix.cpp)test: $(TEST) ./$(TEST)$(TEST): $(TEST).c $(LIB) $(CC) -o $(TEST) $(CFLAGS) $(TEST).c $(LIB)$(APPS): $(APPS).c $(LIB) $(CC) -o $(APPS) $(CFLAGS) $(APPS).c $(LIB)lint: lint -DLINT $(INCLUDES) $(SRC)>fluffdepend: $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)dclean: perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new mv -f Makefile.new $(MAKEFILE)clean: /bin/rm -f $(LIB) $(TEST) $(APPS) *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluffcc: $(MAKE) CC="cc" CFLAG="-O" allgcc: $(MAKE) CC="gcc" CFLAGS="-O3 -fomit-frame-pointer" all# DO NOT DELETE THIS LINE -- make depend depends on it.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -