diff options
author | jaseg <code@jaseg.net> | 2015-07-14 22:08:11 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2015-07-14 22:09:19 +0200 |
commit | bc4fddbb4a018c05f7dd51aca7ed0464681fa860 (patch) | |
tree | ede1bb8f1ae7b9275ab00fc5d2950db28b929207 /Makefile | |
parent | 845a1016ece7a3b54de1f36c95eb71fcd2bad03c (diff) | |
download | lolcat-bc4fddbb4a018c05f7dd51aca7ed0464681fa860.tar.gz lolcat-bc4fddbb4a018c05f7dd51aca7ed0464681fa860.tar.bz2 lolcat-bc4fddbb4a018c05f7dd51aca7ed0464681fa860.zip |
Added little censoring script
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,19 +1,27 @@ -all: lolcat +all: lolcat censor 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 +musl: musl/lib/libc.a musl/lib/crt1.o + +lolcat: lolcat.c musl 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 +censor: censor.c musl + gcc -c -std=c11 -Wall -Imusl/include -o censor.o censor.c + gcc -s -nostartfiles -nodefaultlibs -nostdinc -static -ffunction-sections -fdata-sections -Wl,--gc-sections -o censor censor.o musl/lib/crt1.o musl/lib/libc.a + +install: lolcat censor install lolcat /usr/local/bin + install censor /usr/local/bin clean: - rm -f lolcat lolcat.o + rm -f lolcat lolcat.o censor censor.o + make -C musl clean -.PHONY: install clean +.PHONY: install clean musl |