AppImageKit-checkrt/Makefile

26 lines
518 B
Makefile
Raw Normal View History

2017-04-26 13:27:46 +00:00
CFLAGS ?= -O2 -Wall -Wextra
LDFLAGS += -s
BIN = AppRun_patched
LIB = exec.so
2017-04-26 13:27:46 +00:00
all: $(BIN) $(LIB)
2017-04-26 13:27:46 +00:00
clean:
-rm -f $(BIN) $(LIB) *.o AppRun.c AppRun_patched.c
2017-04-26 13:27:46 +00:00
$(BIN): AppRun_patched.o checkrt.o
$(LIB): exec.o
$(CC) -shared $(LDFLAGS) -o $@ $^ -ldl
AppRun_patched.o checkrt.o: CFLAGS += -include checkrt.h
2017-12-06 20:44:09 +00:00
exec.o: CFLAGS += -fPIC -std=c99
2017-04-26 13:27:46 +00:00
AppRun_patched.c: AppRun.c
patch -p1 --output $@ < AppRun.c.patch
AppRun.c:
wget -c "https://raw.githubusercontent.com/probonopd/AppImageKit/appimagetool/master/AppRun.c"