diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,11 +1,19 @@ all: lolcat -lolcat: lolcat.c fgetwc_fix.c - gcc -g -std=c99 -Wall -o lolcat lolcat.c fgetwc_fix.c +musl/lib/libc.a musl/lib/crt1.o: + cd musl; ./configure + make -C musl + +lolcat: lolcat.c musl/lib/libc.a musl/lib/crt1.o + gcc -c -std=c11 -Wall -Imusl/include -o lolcat.o lolcat.c + gcc -s -nostartfiles -nodefaultlibs -nostdinc -static -ffunction-sections -fdata-sections -Wl,--gc-sections -o lolcat lolcat.o musl/lib/crt1.o musl/lib/libc.a install: lolcat install lolcat /usr/local/bin -.PHONY: install all +clean: + rm -f lolcat lolcat.o + +.PHONY: install clean |