From 04d48e513f2094345eb697c0a34345daff63a87b Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 16 Jun 2016 15:42:58 -0400 Subject: Initial commit of unmodified E-Kermit 1.7 --- makefile | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 makefile (limited to 'makefile') 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 -- cgit v1.2.3