extern char*[] from sounds.h to new sounds.c

Move the list of Tux Paint's internal sound effect filenames
from "sounds.h" to a new "sounds.c" (that compiles to "sounds.o").
This commit is contained in:
Bill Kendrick 2021-10-24 01:20:07 -07:00
parent 5f9ff7e97d
commit b8317f74e0
3 changed files with 78 additions and 43 deletions

View file

@ -4,7 +4,7 @@
# Various contributors (see AUTHORS.txt)
# http://www.tuxpaint.org/
# June 14, 2002 - September 28, 2021
# June 14, 2002 - October 24, 2021
# The version number, for release:
@ -1100,7 +1100,7 @@ TuxPaint.dmg:
tuxpaint: obj/tuxpaint.o obj/i18n.o obj/im.o obj/cursor.o obj/pixels.o \
obj/rgblinear.o obj/playsound.o obj/fonts.o obj/parse.o obj/fill.o \
obj/progressbar.o obj/dirwalk.o obj/get_fname.o obj/onscreen_keyboard.o \
obj/gifenc.o \
obj/gifenc.o obj/sounds.o \
$(ARCH_LIBS)
@echo
@echo "...Linking Tux Paint..."
@ -1243,6 +1243,12 @@ obj/rgblinear.o: src/rgblinear.c src/rgblinear.h \
@$(CC) $(CFLAGS) $(DEBUG_FLAGS) $(SDL_CFLAGS) $(DEFS) \
-c src/rgblinear.c -o obj/rgblinear.o
obj/sounds.o: src/sounds.c src/sounds.h
@echo
@echo "...Compiling sound effect list..."
@$(CC) $(CFLAGS) $(DEBUG_FLAGS) $(SDL_CFLAGS) $(DEFS) \
-c src/sounds.c -o obj/sounds.o
obj/BeOS_print.o: src/BeOS_print.cpp src/BeOS_print.h
@echo