clean Makefile; deprecate x11*.{c,h}

This commit is contained in:
Gwenhael Le Moine 2024-09-24 15:45:16 +02:00
parent d8f629bdc3
commit 36e1501e5a
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 10 additions and 18 deletions

View file

@ -17,17 +17,13 @@ OPTIM ?= 2
CFLAGS ?= -O$(OPTIM) \ CFLAGS ?= -O$(OPTIM) \
-D_GNU_SOURCE=1 \ -D_GNU_SOURCE=1 \
-I./src/ \
-I./libChf/src/ \
-L./libChf \
-DVERSION_MAJOR=$(VERSION_MAJOR) \ -DVERSION_MAJOR=$(VERSION_MAJOR) \
-DVERSION_MINOR=$(VERSION_MINOR) \ -DVERSION_MINOR=$(VERSION_MINOR) \
-DPATCHLEVEL=$(PATCHLEVEL) -DPATCHLEVEL=$(PATCHLEVEL) \
-I./src/ \
-I./libChf/src/
LIBS = -lm -lChf -lXm -lutil LIBS = -L./libChf -lChf
# X11CFLAGS = $(shell pkg-config --cflags x11 xext)
# X11LIBS = $(shell pkg-config --libs x11 xext xt)
SDLCFLAGS = $(shell pkg-config --cflags sdl2) SDLCFLAGS = $(shell pkg-config --cflags sdl2)
SDLLIBS = $(shell pkg-config --libs sdl2) SDLLIBS = $(shell pkg-config --libs sdl2)
@ -37,8 +33,7 @@ NCURSESLIBS = $(shell pkg-config --libs ncursesw)
FULL_WARNINGS = no FULL_WARNINGS = no
DOTOS = src/ui48_config.o \ DOTOS = src/cpu.o \
src/cpu.o \
src/debug.o \ src/debug.o \
src/dis.o \ src/dis.o \
src/disk_io.o \ src/disk_io.o \
@ -53,16 +48,14 @@ DOTOS = src/ui48_config.o \
src/romram.o \ src/romram.o \
src/romram49.o \ src/romram49.o \
src/serial.o \ src/serial.o \
src/x_func.o \ src/x_func.o
DOTOS_UI48 = src/ui48_config.o \
src/ui48_common.o \ src/ui48_common.o \
src/ui48_sdl2.o \ src/ui48_sdl2.o \
src/ui48_ncurses.o \ src/ui48_ncurses.o \
src/ui48_emulator.o \ src/ui48_emulator.o \
src/ui48_main.o src/ui48_main.o
# \
# src/x11_lcd.o \
# src/x11.o \
# src/x11_main.o
MSFS = src/MSFs/cpu.msf \ MSFS = src/MSFs/cpu.msf \
src/MSFs/debug.msf \ src/MSFs/debug.msf \
@ -115,7 +108,6 @@ override CFLAGS := -std=c11 \
$(SDLCFLAGS) \ $(SDLCFLAGS) \
$(NCURSESCFLAGS) \ $(NCURSESCFLAGS) \
$(CFLAGS) $(CFLAGS)
# $(X11CFLAGS) \
override CPPFLAGS := -I./src/ -D_GNU_SOURCE=1 \ override CPPFLAGS := -I./src/ -D_GNU_SOURCE=1 \
$(CPPFLAGS) $(CPPFLAGS)
@ -128,8 +120,8 @@ all: libChf/libChf.a dist/saturn dist/saturn.cat docs
libChf/libChf.a: libChf/libChf.a:
make -C libChf make -C libChf
dist/saturn: $(DOTOS) libChf/libChf.a dist/saturn: $(DOTOS) $(DOTOS_UI48) libChf/libChf.a
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(X11LIBS) $(SDLLIBS) $(NCURSESLIBS) $(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(SDLLIBS) $(NCURSESLIBS)
dist/pack: src/pack.o src/disk_io.o src/debug.o libChf/libChf.a dist/pack: src/pack.o src/disk_io.o src/debug.o libChf/libChf.a
# UNUSED # UNUSED