# BANNER Makefile for the MS-DOS 386/G++ GNU C/C++ Compiler (DJGPP)
# (c)Copyright 1992 by Tobias Ferber,  All Rights Reserved

CC=gcc
AS=as
CFLAGS= -O -D__MSDOS__
AFLAGS=

EXTENDER=c:\devel\djgpp\bin\stub.exe

.PHONY: all

all: banner

banner: banner.exe

banner.exe: banner.out
	copy /b $(EXTENDER) + $< $@ > nul:
	del $<

banner.out: banner.o letters.o
	$(CC) $(CFLAGS) -o $@ $?

banner.o: banner.c
	$(CC) $(CFLAGS) -c -o $@ $<

letters.o: letters.s
	$(AS) $(AFLAGS) -o $@ $<
