view calypso/Makefile @ 59:10bfdee30a68

simtool/chvext.c: missing #include <stdlib.h>
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 23 Mar 2021 05:25:12 +0000
parents 0a21a7ffe144
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	fcsim-calypso-be caltest

INSTALL_PREFIX=	/opt/freecalypso

INSTBIN=${INSTALL_PREFIX}/bin

MAIN_OBJS=	main.o nonblock.o targetfd.o tpinterf.o

all:	${PROGS}

fcsim-calypso-be:	${MAIN_OBJS}
	${CC} ${CFLAGS} -o $@ ${MAIN_OBJS}

caltest:	caltest.c
	${CC} ${CFLAGS} -o $@ $@.c

install:
	mkdir -p ${INSTBIN}
	install -c fcsim-calypso-be ${INSTBIN}

clean:
	rm -f ${PROGS} *.o