2013-05-03 23:12:46 +02:00
|
|
|
#Makefile per la compilazione
|
|
|
|
|
|
|
|
#Macro
|
|
|
|
FASM=/opt/bin/fasm
|
|
|
|
NASM=/usr/bin/nasm
|
|
|
|
KPACK=/opt/bin/kpack
|
|
|
|
LANG=lang.inc
|
|
|
|
FILE=c4
|
|
|
|
SOURCE=${FILE}.asm
|
|
|
|
OUT=${FILE}.bin
|
|
|
|
|
2013-05-03 23:16:05 +02:00
|
|
|
all:en
|
|
|
|
|
2013-05-03 23:12:46 +02:00
|
|
|
en:
|
|
|
|
echo "lang equ 'en'" > lang.inc
|
|
|
|
${NASM} -f bin -o ${OUT} ${SOURCE}
|
|
|
|
|
|
|
|
it:
|
|
|
|
echo "lang equ 'it'" > lang.inc
|
|
|
|
${NASM} -f bin -o ${OUT} ${SOURCE}
|
|
|
|
|
|
|
|
clean:
|
2013-05-03 23:16:05 +02:00
|
|
|
rm -f ${OUT} lang.inc
|