#
# Makefile for Thunder SDL
#
-# by James L. Hammons
+# by James Hammons
# (C) 2009 Underground Software
# This software is licensed under the GPL v3 or later
#
SDLLIBTYPE = --static-libs
MSG = Mac OS X
-else # *nix
+else # *nix
SYSTYPE = __GCCUNIX__
EXESUFFIX =
LD = gcc
TARGET = thunder
-CFLAGS = -MMD -Wall -Wno-switch -Wno-uninitialized -Wno-unused -O2 -D$(SYSTYPE) -fomit-frame-pointer `sdl-config --cflags`
+CFLAGS = -MMD -Wall -Wno-switch -Wno-uninitialized -Wno-unused -O2 -D$(SYSTYPE) -fomit-frame-pointer `sdl2-config --cflags`
CPPFLAGS = -MMD -Wall -Wno-switch -Wno-non-virtual-dtor -Wno-uninitialized -Wno-unused -O2 -D$(SYSTYPE) \
- -fomit-frame-pointer `sdl-config --cflags` \
+ -fomit-frame-pointer `sdl2-config --cflags` \
-g
# -DLOG_UNMAPPED_MEMORY_ACCESSES
LDFLAGS =
# Ugh, let's get rid of the ref to -lcurses
-LIBS = -L/usr/local/lib `sdl-config $(SDLLIBTYPE)` -lstdc++ -lz $(GLLIB) -lcurses
+LIBS = -L/usr/local/lib `sdl2-config $(SDLLIBTYPE)` -lstdc++ -lz $(GLLIB) -lcurses
INCS = -I. -Isrc -I/usr/local/include
OBJS = \
- obj/gui.o \
- obj/log.o \
- obj/resource.o \
- obj/screen.o \
- obj/v6809.o \
- obj/thunder.o \
+ obj/dis6808.o \
+ obj/dis6809.o \
+ obj/gui.o \
+ obj/icon-64x64.o \
+ obj/log.o \
+ obj/resource.o \
+ obj/screen.o \
+ obj/v6808.o \
+ obj/v6809.o \
+ obj/video.o \
+ obj/thunder.o \
$(ICON)
all: checkenv message obj $(TARGET)$(EXESUFFIX)
@$(CC) $(CPPFLAGS) $(INCS) -c $< -o $@
obj/%.o: src/%.asm
- nasm -f elf32 -I ./res/ $< -o $@
-# *** sigh *** yet another variable... !!! FIX !!!
-# nasm -f coff $< -o $@
+ @echo -e "\033[01;33m***\033[00;32m Assembling $<...\033[00m"
+ @nasm -f elf64 -I ./res/ $< -o $@
$(TARGET)$(EXESUFFIX): $(OBJS)
@echo -e "\033[01;33m***\033[00;32m Linking it all together...\033[00m"