###  MAKEFILE for DJGPPASM.DOC examples  ###
###     Created by Matthew Mastracci     ###

# A wonderful template for compiling any .asm file
%.o : %.asm ; nasm -f coff $<

# Create the executables, default to all
.PHONY : all
all : at&t.exe nasmtest.exe bignum.exe alloctst.exe inttest.exe hookint.exe rmcbtest.exe crt0test.exe ; @echo Done!
at&t.exe : at&t.cc ; gcc at&t.cc -o at&t.exe -Wall
nasmtest.exe : nasmtest.cc nasmtest.o ; gcc nasmtest.cc -o nasmtest.exe nasmtest.o -Wall
bignum.exe : bignum.cc bignum.o ; gcc bignum.cc -o bignum.exe bignum.o -Wall
alloctst.exe : alloctst.cc alloctst.o ; gcc alloctst.cc -o alloctst.exe alloctst.o -Wall
inttest.exe : inttest.cc inttest.o ; gcc inttest.cc -o inttest.exe inttest.o -Wall
hookint.exe : hookint.cc hookint.o ; gcc hookint.cc -o hookint.exe hookint.o -Wall
rmcbtest.exe : rmcbtest.cc rmcbtest.o ; gcc rmcbtest.cc -o rmcbtest.exe rmcbtest.o -Wall
crt0test.exe : crt0test.cc ; gcc crt0test.cc -o crt0test.exe -Wall
