Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .PHONY: blob
- CC=gcc
- CP=cp
- RM=rm
- all: start static dynamic blob
- static:
- $(CC) -I./libs/include/ -I./libs/include/freetype2/ -L./libs/lib/ app_static.c -lfreetype -lpng -lz -lm -o app-static
- dynamic:
- $(RM) -f *.so
- $(CP) -f ./libs/lib/libfreetype.so ./libfreetype.so
- $(CP) -f ./libs/lib/libpng.so ./libpng.so
- $(CC) -I./libs/include/ -I./libs/include/freetype2/ -DDYNAMIC app_dynamic.c -lm -ldl -o ./app-dynamic
- blob:
- $(CC) ./elfloader/elf_loader.c ./elfloader/main.c ./elfloader/wheelc/list.c -lm -ldl -o ./app-blob
- $(CC) -I./libs/include/ -I./libs/include/freetype2/ -L./libs/lib/ -fno-stack-protector -fno-exceptions -nostdlib -pie -fPIE -fPIC -shared -DBLOB app_blob.c -lfreetype -lpng -lz -lm -o ./blob.bin
- start: clean
- $(RM) -f *.so
- $(RM) -f *.png
- clean:
- $(RM) -f app-*
- $(RM) -f app.o
- $(RM) -f blob.bin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement