1
0
mirror of synced 2024-12-02 16:37:17 +01:00
lindbergh-loader/Makefile

26 lines
757 B
Makefile
Raw Normal View History

2022-07-07 14:34:29 +02:00
CC=gcc -m32
CFLAGS = -g -O0 -fPIC -m32 -D_GNU_SOURCE -Wall -Werror -Wno-unused-variable -Wno-unused-function
LD = g++ -m32
LDFLAGS = -Wl,-z,defs -rdynamic -static-libstdc++ -static-libgcc -lc -ldl -lGL -lglut -lX11 -lm -lpthread -shared -nostdlib
BUILD = build
OBJS := $(patsubst %.c,%.o,$(wildcard src/lindbergh/*.c))
2022-07-28 13:43:10 +02:00
all: lindbergh.so libsegaapi.so
2022-07-07 14:34:29 +02:00
lindbergh.so: $(OBJS)
mkdir -p $(BUILD)
$(LD) $(OBJS) $(LDFLAGS) $(CFLAGS) -o $(BUILD)/lindbergh.so
rm -f src/lindbergh/*.o
2022-07-28 13:43:10 +02:00
LIBSEGA_LD=gcc #clang
LIBSEGA_LDFLAGS=-m32 -O0 -g
libsegaapi.so: src/libsegaapi/segaapi.o
$(LIBSEGA_LD) $(LIBSEGA_LDFLAGS) src/libsegaapi/segaapi.o -L/usr/lib/i386-linux-gnu -lalut -fPIC -shared -o $(BUILD)/libsegaapi.so
rm -f src/libsegaapi/*.o
2022-07-07 14:34:29 +02:00
clean:
rm -rf $(BUILD)