-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running make
does nothing
#583
Comments
Any more details? What version of |
I'm using GNU make 4.4.1 on Linux |
This is odd, the same version of GNU Make works on my VM. Can you try adding |
Yes it prints:
|
@absolutelynothinghere does |
No. |
I seem to have forgotten to update this issue, but I basically wrote an entirely new Makefile after trying to debug the current one. The new Makefile is 60 lines long and POSIX compliant so it does not depend on GNU Make... Note that it only compiles the SameBoy executable, not the boot ROMs. ### Variables
include version.mk
COPYRIGHT_YEAR = 2023
PREFIX = /usr/local
DATA_DIR = $(PREFIX)/share/sameboy/
WARNINGS = \
-Werror -Wall -Wno-unknown-warning -Wno-unknown-warning-option \
-Wno-missing-braces -Wno-nonnull -Wno-unused-result -Wno-strict-aliasing \
-Wno-multichar -Wno-int-in-bool-context -Wno-format-truncation
DEFINES = \
-DGB_INTERNAL -D_USE_MATH_DEFINES -D_GNU_SOURCE -DNDEBUG \
-DDATA_DIR="\"$(DATA_DIR)\"" -DGB_VERSION="\"$(VERSION)\"" \
-DGB_COPYRIGHT_YEAR="\"$(COPYRIGHT_YEAR)\""
PKG_CONFIG = pkg-config
CC = cc
CFLAGS = -I. -O3 -std=gnu11 -ffast-math $(WARNINGS) $(DEFINES) \
`$(PKG_CONFIG) --cflags sdl2 gl`
LDFLAGS = `$(PKG_CONFIG) --libs sdl2 gl` -lm -ldl -s
### Sources
CORE_SOURCES = \
Core/workboy.c Core/timing.c Core/symbol_hash.c Core/sm83_disassembler.c \
Core/sm83_cpu.c Core/sgb.c Core/save_state.c Core/rumble.c Core/rewind.c \
Core/random.c Core/printer.c Core/memory.c Core/mbc.c Core/joypad.c \
Core/gb.c Core/display.c Core/debugger.c Core/cheats.c Core/camera.c \
Core/apu.c
OPEN_DIALOG = OpenDialog/gtk.c
SDL_SOURCES = \
SDL/utils.c SDL/shader.c SDL/opengl_compat.c SDL/main.c SDL/gui.c \
SDL/font.c SDL/console.c SDL/configuration.c SDL/audio.c SDL/audio/sdl.c \
$(OPEN_DIALOG)
OBJECTS = $(CORE_SOURCES:.c=.o) $(SDL_SOURCES:.c=.o)
EXE = sameboy
### Targets
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
$(EXE): $(OBJECTS)
$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
clean:
rm -f $(OBJECTS) $(EXE)
install: $(EXE)
@mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(DATA_DIR)
cp $(EXE) $(DESTDIR)$(PREFIX)/bin
cp -R Misc/Palettes Misc/registers.sym Shaders $(DESTDIR)$(DATA_DIR)
cp -R SDL/background.bmp LICENSE $(DESTDIR)$(DATA_DIR)
echo Please copy the boot ROMs to $(DESTDIR)$(DATA_DIR) |
I tried running
make
andmake sdl
but there's no output, no errors, nothing.The text was updated successfully, but these errors were encountered: