diff --git a/Makefile b/Makefile index 788451334..8205a5b66 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # bill@newbreedsoftware.com # http://www.newbreedsoftware.com/tuxpaint/ -# June 14, 2002 - August 19, 2004 +# June 14, 2002 - September 14, 2004 # Where to install things: @@ -65,6 +65,11 @@ LOCALE_PREFIX=$(PREFIX)/share/locale/ NOSOUNDFLAG=__SOUND +# Don't build with hqxx code yet... +# HQXX_O = obj/hqxx.o obj/hq4x.o +# HQXX_H = src/hqxx.h src/hq4x.h + + # Libraries, paths, and flags: SDL_LIBS=$(shell sdl-config --libs) -lSDL_image -lSDL_ttf $(SDL_MIXER_LIB) @@ -678,13 +683,14 @@ install-man: @chmod a+rx,g-w,o-w $(MAN_PREFIX)/man1/tuxpaint-import.1.gz + # Build the program! -tuxpaint: obj/tuxpaint.o obj/hqxx.o obj/hq4x.o $(ARCH_LIBS) +tuxpaint: obj/tuxpaint.o $(HQXX_O) $(ARCH_LIBS) @echo @echo "...Linking Tux Paint..." @$(CC) $(CFLAGS) $(SDL_CFLAGS) $(DEFS) \ - -o tuxpaint obj/tuxpaint.o obj/hqxx.o obj/hq4x.o \ + -o tuxpaint obj/tuxpaint.o $(HQXX_O) \ $(ARCH_LIBS) $(SDL_LIBS) \ -lm $(ARCH_LINKS) @$(RSRC_CMD) @@ -696,7 +702,7 @@ tuxpaint: obj/tuxpaint.o obj/hqxx.o obj/hq4x.o $(ARCH_LIBS) obj/tuxpaint.o: src/tuxpaint.c obj \ src/tools.h src/titles.h src/colors.h src/shapes.h \ src/magic.h src/sounds.h src/tip_tux.h src/great.h \ - src/hqxx.h src/hq4x.h \ + $(HQXX_H) \ src/mouse/arrow.xbm src/mouse/arrow-mask.xbm \ src/mouse/hand.xbm src/mouse/hand-mask.xbm \ src/mouse/insertion.xbm src/mouse/insertion-mask.xbm \ diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 92a37d62b..b594ed2cf 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -66,9 +66,12 @@ #include #include #include + +#ifdef USE_HQ4X #include "hqxx.h" #include "hq3x.h" #include "hq4x.h" +#endif #include #include @@ -5041,10 +5044,12 @@ void setup(int argc, char * argv[]) SDL_Flip(screen); - + +#ifdef USE_HQ4X /* Init high quality scaling stuff: */ InitLUTs(RGBtoYUV); +#endif /* Load other images: */