diff options
author | Paul Selkirk <paul@psgd.org> | 2016-06-16 15:42:58 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-06-16 15:42:58 -0400 |
commit | 04d48e513f2094345eb697c0a34345daff63a87b (patch) | |
tree | f7f26fca6ae7fbacdcf9cd9a1582465f79c94f24 /makefile |
Initial commit of unmodified E-Kermit 1.7
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..a098f6d --- /dev/null +++ b/makefile @@ -0,0 +1,69 @@ +#Makefile for embedded Kermit. +# +# Copyright (C) 1995, 2011, +# Trustees of Columbia University in the City of New York. +# All Rights Reserved. See kermit.c for license. + +OBJS= main.o kermit.o unixio.o +EK = makewhat +ALL = $(EK) + +all: $(ALL) + +ek: $(OBJS) + $(CC) $(CFLAGS) -o ek $(OBJS) + +#Dependencies + +main.o: main.c cdefs.h debug.h kermit.h platform.h + +kermit.o: kermit.c cdefs.h debug.h kermit.h + +unixio.o: unixio.c cdefs.h debug.h platform.h kermit.h + +#Targets + +#Build with cc. +cc: + make ek + +#Build with gcc. +gcc: + @UNAME=`uname` ; make "CC=gcc" "CC2=gcc" "CFLAGS=-D$$UNAME -O2" ek + +#Ditto but no debugging. +gccnd: + make "CC=gcc" "CC2=gcc" "CFLAGS=-DNODEBUG -O2" ek + +#Build with gcc, Receive-Only, minimum size and features. +gccmin: + make "CC=gcc" "CC2=gcc" \ + "CFLAGS=-DMINSIZE -DOBUFLEN=256 -DFN_MAX=16 -O2" ek + +#Ditto but Receive-Only: +gccminro: + make "CC=gcc" "CC2=gcc" \ + "CFLAGS=-DMINSIZE -DOBUFLEN=256 -DFN_MAX=16 -DRECVONLY -O2" ek + +#Minimum size, receive-only, but with debugging: +gccminrod: + make "CC=gcc" "CC2=gcc" \ + "CFLAGS=-DMINSIZE -DOBUFLEN=256 -DFN_MAX=16 -DRECVONLY -DDEBUG -O2" ek + +#HP-UX 9.0 or higher with ANSI C. +hp: + make "SHELL=/usr/bin/sh" CC=/opt/ansic/bin/cc CC2=/opt/ansic/bin/cc \ + ek "CFLAGS=-DHPUX -Aa" + +#To get profile, build this target, run it, then "gprof ./ek > file". +gprof: + make "CC=gcc" "CC2=gcc" ek "CFLAGS=-DNODEBUG -pg" "LNKFLAGS=-pg" + +clean: + rm -f $(OBJS) core + +makewhat: + @echo 'Defaulting to gcc...' + make gcc + +#End of Makefile |