# Makefile - Freeciv Launcher (ReAction), native build on AmigaOS 4.1 with the SDK
#
#   make          build "Freeciv-Launcher"
#   make clean    remove the binary
#
# Copy the resulting "Freeciv-Launcher" into the Freeciv directory
# (next to freeciv-sdl3) and start it from there.

CC      = gcc
TARGET  = Freeciv-Launcher
SRC     = freeciv_launcher.c

CFLAGS  = -mcrt=newlib -O2 -Wall
LDFLAGS = -mcrt=newlib
LIBS    = -lauto

all: $(TARGET)

$(TARGET): $(SRC)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(LIBS)
	strip $@

clean:
	-delete $(TARGET) quiet

.PHONY: all clean
