move libChf out of src/

This commit is contained in:
Gwenhael Le Moine 2024-03-26 15:51:15 +01:00
parent 24abaca1b0
commit cbf31fb45d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
40 changed files with 21 additions and 21 deletions

4
.gitignore vendored
View file

@ -1,5 +1,5 @@
/src/libChf/mt_build/ /libChf/mt_build/
/src/libChf/st_build/ /libChf/st_build/
/src/*.o /src/*.o
manual/saturn.toc manual/saturn.toc
manual/saturn.aux manual/saturn.aux

View file

@ -6,7 +6,7 @@ CC ?= gcc
OPTIM ?= 2 OPTIM ?= 2
CFLAGS = -g -O$(OPTIM) -I./src/ -D_GNU_SOURCE=1 -I./src/libChf -L./src/libChf/st_build -lutil CFLAGS = -g -O$(OPTIM) -I./src/ -D_GNU_SOURCE=1 -I./libChf -L./libChf/st_build -lutil
LIBS = -lm -lChf -lXm LIBS = -lm -lChf -lXm
X11CFLAGS = $(shell pkg-config --cflags x11 xext) -D_GNU_SOURCE=1 X11CFLAGS = $(shell pkg-config --cflags x11 xext) -D_GNU_SOURCE=1
@ -40,30 +40,30 @@ DOTOS = src/cpu.o \
src/x11.o \ src/x11.o \
src/x_func.o src/x_func.o
MSFS= src/debug.msf \ MSFS= src/MSFs/debug.msf \
src/cpu.msf \ src/MSFs/cpu.msf \
src/modules.msf \ src/MSFs/modules.msf \
src/disk_io.msf \ src/MSFs/disk_io.msf \
src/x11.msf \ src/MSFs/x11.msf \
src/serial.msf \ src/MSFs/serial.msf \
src/flash49.msf \ src/MSFs/flash49.msf \
src/x_func.msf \ src/MSFs/x_func.msf \
src/saturn.msf \ src/MSFs/saturn.msf \
src/util.msf \ src/MSFs/util.msf \
src/libChf/chf.msf libChf/chf.msf
.PHONY: all clean clean-all pretty-code install mrproper get-roms .PHONY: all clean clean-all pretty-code install mrproper get-roms
all: src/libChf/st_build/libChf.a dist/saturn dist/pack dist/saturn.cat manual all: libChf/st_build/libChf.a dist/saturn dist/pack dist/saturn.cat manual
# Building # Building
src/libChf/st_build/libChf.a: libChf/st_build/libChf.a:
make -C src/libChf make -C libChf
dist/saturn: $(DOTOS) src/libChf/st_build/libChf.a dist/saturn: $(DOTOS) libChf/st_build/libChf.a
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(CC) $^ -o $@ $(CFLAGS) $(LIBS)
dist/pack: src/pack.o src/disk_io.o src/debug.o src/libChf/st_build/libChf.a dist/pack: src/pack.o src/disk_io.o src/debug.o libChf/st_build/libChf.a
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) $(CC) $^ -o $@ $(CFLAGS) $(LIBS)
dist/saturn.cat: $(MSFS) dist/saturn.cat: $(MSFS)
@ -77,7 +77,7 @@ manual:
# Cleaning # Cleaning
clean: clean:
rm -f src/*.o rm -f src/*.o
make -C src/libChf clean make -C libChf clean
make -C manual clean make -C manual clean
mrproper: clean mrproper: clean
@ -87,7 +87,7 @@ clean-all: mrproper
# Formatting # Formatting
pretty-code: pretty-code:
clang-format -i src/*.c src/*.h src/libChf/*.c src/libChf/*.h clang-format -i src/*.c src/*.h libChf/*.c libChf/*.h
# Dependencies # Dependencies
get-roms: get-roms: