2 # make - twidle the options yourself :-)
3 # make cc - standard cc options
4 # make gcc - standard gcc options
5 # make x86-elf - linux-elf etc
6 # make x86-out - linux-a.out, FreeBSD etc
13 CFLAG= -O3 -fomit-frame-pointer
17 INSTALLTOP=/usr/local/lib
19 MAKEDEPEND= makedepend
20 MAKEFILE= Makefile.uni
25 #RC4_ENC=asm/rx86-elf.o
26 #RC4_ENC=asm/rx86-out.o
27 #RC4_ENC=asm/rx86-sol.o
28 #RC4_ENC=asm/rx86bdsi.o
30 CFLAGS= $(INCLUDES) $(CFLAG)
37 LIBSRC=rc4_skey.c rc4_enc.c
38 LIBOBJ=rc4_skey.o $(RC4_ENC)
43 HEADER= $(EXHEADER) rc4_locl.h
45 ALL= $(GENERAL) $(SRC) $(HEADER)
47 all: $(LIB) $(TEST) $(APPS)
50 $(AR) $(LIB) $(LIBOBJ)
51 sh $(TOP)/ranlib.sh $(LIB)
54 asm/rx86-elf.o: asm/rx86unix.cpp
55 $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o
58 asm/rx86-sol.o: asm/rx86unix.cpp
59 $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s
60 as -o asm/rx86-sol.o asm/rx86-sol.s
64 asm/rx86-out.o: asm/rx86unix.cpp
65 $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o
68 asm/rx86bsdi.o: asm/rx86unix.cpp
69 $(CPP) -DBSDI asm/rx86unix.cpp | as -o asm/rx86bsdi.o
72 (cd asm; perl rc4-586.pl cpp >rx86unix.cpp)
77 $(TEST): $(TEST).c $(LIB)
78 $(CC) -o $(TEST) $(CFLAGS) $(TEST).c $(LIB)
80 $(APPS): $(APPS).c $(LIB)
81 $(CC) -o $(APPS) $(CFLAGS) $(APPS).c $(LIB)
84 lint -DLINT $(INCLUDES) $(SRC)>fluff
87 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
90 perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
91 mv -f Makefile.new $(MAKEFILE)
94 /bin/rm -f $(LIB) $(TEST) $(APPS) *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
97 $(MAKE) CC="cc" CFLAG="-O" all
100 $(MAKE) CC="gcc" CFLAGS="-O3 -fomit-frame-pointer" all
102 # DO NOT DELETE THIS LINE -- make depend depends on it.