diff Makefile.gen @ 496:966617f0f6cd

Add a simple utility for generating different sinus, etc. value tables in c64 assembler format.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 17 Nov 2012 01:52:59 +0200
parents 30145d17aebd
children e1526854e735
line wrap: on
line diff
--- a/Makefile.gen	Fri Nov 16 19:18:03 2012 +0200
+++ b/Makefile.gen	Sat Nov 17 01:52:59 2012 +0200
@@ -192,7 +192,7 @@
 ifeq ($(DM_BUILD_TOOLS),yes)
 DMLIB_OBJS += libgfx.o lib64gfx.o
 ifeq ($(DM_USE_STDIO),yes)
-BINARIES+= objlink data2inc gfxconv
+BINARIES+= objlink data2inc gfxconv gentab
 ifeq ($(SUP_MODLOAD),yes)
 BINARIES+= viewmod mod2wav testpl
 ifeq ($(DM_GFX_BLITS),yes)
@@ -391,6 +391,10 @@
 	@echo " LINK $+"
 	@$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) $(SDL_LDFLAGS)
 
+$(BINPATH)gentab$(EXEEXT): $(OBJPATH)gentab.o $(DMLIB_A)
+	@echo " LINK $+"
+	@$(CC) -o $@ $(filter %.o %.a,$+) $(DM_LDFLAGS) -lm
+
 
 ###
 ### Editor targets