mirror of
https://github.com/yuzu-emu/AppImageKit-checkrt.git
synced 2025-01-09 01:15:41 +00:00
26 lines
504 B
Makefile
26 lines
504 B
Makefile
CFLAGS ?= -O2 -Wall -Wextra
|
|
LDFLAGS += -s
|
|
BIN = AppRun_patched
|
|
LIB = exec.so
|
|
|
|
|
|
all: $(BIN) $(LIB)
|
|
|
|
clean:
|
|
-rm -f $(BIN) $(LIB) *.o AppRun.c AppRun_patched.c
|
|
|
|
$(BIN): AppRun_patched.o checkrt.o
|
|
|
|
$(LIB): exec.o
|
|
$(CC) -shared $(LDFLAGS) -o $@ $^ -ldl
|
|
|
|
AppRun_patched.o checkrt.o: CFLAGS += -include checkrt.h
|
|
exec.o: CFLAGS += -fPIC -std=c99
|
|
|
|
AppRun_patched.c: AppRun.c
|
|
patch -p1 --output $@ < AppRun.c.patch
|
|
|
|
AppRun.c:
|
|
wget -c "https://raw.githubusercontent.com/AppImage/AppImageKit/master/AppRun.c"
|
|
|