diff --git a/samples/fractals/makefile b/samples/fractals/makefile new file mode 100644 index 0000000..0a81c92 --- /dev/null +++ b/samples/fractals/makefile @@ -0,0 +1,16 @@ +CC=../../bin/oscar64 +CFLAGS=-n + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: mbtext.prg mbtext.prg mbhires.prg mbmulti.prg mbmulti3d.prg mbfixed.prg mbzoom.prg + +mbfixed.prg: mbfixed.c + $(CC) $(CFLAGS) -O3 $< + +mbzoom.prg: mbzoom.c + $(CC) $(CFLAGS) -O3 $< + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg diff --git a/samples/games/makefile b/samples/games/makefile new file mode 100644 index 0000000..4b89db4 --- /dev/null +++ b/samples/games/makefile @@ -0,0 +1,19 @@ +CC=../../bin/oscar64 +CFLAGS=-n + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: snake.prg lander.prg maze3d.prg missile.prg breakout.prg connectfour.prg hscrollshmup.prg + +snake.prg: snake.c + $(CC) $< + +missile.prg: missile.c + $(CC) $(CFLAGS) -O3 $< + +hscrollshmup.prg: hscrollshmup.c + $(CC) $(CFLAGS) -O2 $< + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg *.bcs diff --git a/samples/hires/makefile b/samples/hires/makefile new file mode 100644 index 0000000..c7d47ea --- /dev/null +++ b/samples/hires/makefile @@ -0,0 +1,13 @@ +CC=../../bin/oscar64 +CFLAGS=-n + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: splitscreen.prg func3d.prg lines.prg polygon.prg bitblit.prg fractaltree.prg qsort.prg + +splitscreen.prg: splitscreen.c + $(CC) $< + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg *.bcs diff --git a/samples/hiresmc/makefile b/samples/hiresmc/makefile new file mode 100644 index 0000000..750e15f --- /dev/null +++ b/samples/hiresmc/makefile @@ -0,0 +1,10 @@ +CC=../../bin/oscar64 +CFLAGS=-n + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: func3d.prg polygon.prg floodfill.prg paint.prg + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg diff --git a/samples/kernalio/makefile b/samples/kernalio/makefile new file mode 100644 index 0000000..0c921c2 --- /dev/null +++ b/samples/kernalio/makefile @@ -0,0 +1,10 @@ +CC=../../bin/oscar64 +CFLAGS= + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: diskdir.prg filewrite.prg fileread.prg charwrite.prg charread.prg hireswrite.prg hiresread.prg + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg *.bcs diff --git a/samples/makefile b/samples/makefile new file mode 100644 index 0000000..adc9956 --- /dev/null +++ b/samples/makefile @@ -0,0 +1,25 @@ +all: + $(MAKE) -C fractals + $(MAKE) -C games + $(MAKE) -C hires + $(MAKE) -C hiresmc + $(MAKE) -C particles + $(MAKE) -C kernalio + $(MAKE) -C memmap + $(MAKE) -C rasterirq + $(MAKE) -C scrolling + $(MAKE) -C sprites + $(MAKE) -C stdio + +clean: + $(MAKE) -C fractals $@ + $(MAKE) -C games $@ + $(MAKE) -C hires $@ + $(MAKE) -C hiresmc $@ + $(MAKE) -C particles $@ + $(MAKE) -C kernalio $@ + $(MAKE) -C memmap $@ + $(MAKE) -C rasterirq $@ + $(MAKE) -C scrolling $@ + $(MAKE) -C sprites $@ + $(MAKE) -C stdio $@ diff --git a/samples/memmap/makefile b/samples/memmap/makefile new file mode 100644 index 0000000..c14cb6d --- /dev/null +++ b/samples/memmap/makefile @@ -0,0 +1,29 @@ +CC=../../bin/oscar64 +CFLAGS= + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: largemem.prg allmem.prg charsetlo.prg charsethi.prg charsetcopy.prg charsetexpand.prg \ +charsetload.prg easyflash.crt easyflashreloc.crt easyflashshared.crt tsr.prg overlay.prg + +charsetload.prg: charsetload.c ../resources/charset.bin + $(CC) $(CFLAGS) $< -d64=charsetload.d64 -fz=../resources/charset.bin + +easyflash.crt: easyflash.c + $(CC) $(CFLAGS) $< -n -tf=crt + +easyflashreloc.crt: easyflashreloc.c + $(CC) $(CFLAGS) $< -n -tf=crt + +easyflashshared.crt: easyflashshared.c + $(CC) $(CFLAGS) $< -n -tf=crt + +tsr.prg: tsr.c + $(CC) $(CFLAGS) $< -n -dNOFLOAT -dNOLONG + +overlay.prg: overlay.c + $(CC) $(CFLAGS) $< -n -d64=overlay.d64 + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg *.bcs *.d64 *.crt diff --git a/samples/particles/makefile b/samples/particles/makefile new file mode 100644 index 0000000..3826e7f --- /dev/null +++ b/samples/particles/makefile @@ -0,0 +1,10 @@ +CC=../../bin/oscar64 +CFLAGS=-n + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: fireworks_ptr.prg fireworks_hires.prg fireworks_stripe.prg + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg diff --git a/samples/rasterirq/makefile b/samples/rasterirq/makefile new file mode 100644 index 0000000..db1239c --- /dev/null +++ b/samples/rasterirq/makefile @@ -0,0 +1,13 @@ +CC=../../bin/oscar64 +CFLAGS= + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: colorbars.prg openborder.prg textcrawler.prg movingbars.prg + +movingbars.prg: movingbars.c + $(CC) $(CFLAGS) $< -n + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg *.bcs diff --git a/samples/scrolling/makefile b/samples/scrolling/makefile new file mode 100644 index 0000000..b20a190 --- /dev/null +++ b/samples/scrolling/makefile @@ -0,0 +1,10 @@ +CC=../../bin/oscar64 +CFLAGS=-n + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: bigfont.prg tunnel.prg grid2d.prg colorram.prg cgrid8way.prg + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg diff --git a/samples/sprites/makefile b/samples/sprites/makefile new file mode 100644 index 0000000..b5d8df1 --- /dev/null +++ b/samples/sprites/makefile @@ -0,0 +1,16 @@ +CC=../../bin/oscar64 +CFLAGS=-n + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: joycontrol.prg multiplexer.prg creditroll.prg sprmux32.prg sprmux64.prg + +joycontrol.prg: joycontrol.c + $(CC) $< + +sprmux32.prg: sprmux32.c + $(CC) $(CFLAGS) $< -O2 -dVSPRITES_MAX=32 -dNUM_IRQS=28 + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg *.bcs diff --git a/samples/stdio/makefile b/samples/stdio/makefile new file mode 100644 index 0000000..ca86830 --- /dev/null +++ b/samples/stdio/makefile @@ -0,0 +1,10 @@ +CC=../../bin/oscar64 +CFLAGS= + +%.prg: %.c + $(CC) $(CFLAGS) $< + +all: helloworld.prg + +clean: + $(RM) *.asm *.int *.lbl *.map *.prg *.bcs