oh yeah, add the makefile

This commit is contained in:
randomuser 2023-01-03 23:28:40 -06:00
parent decef894bd
commit 71ebc5f170
1 changed files with 11 additions and 6 deletions

View File

@ -38,7 +38,7 @@ sh:
check: check:
shellcheck sh/* shellcheck sh/*
mkc: c/scream c/timer c/boid c/anaconda c/colors mkc: c/scream c/timer c/boid c/anaconda c/colors c/xgetnewwindow
c/boid: c/boid:
cc c/boid.c -o c/boid -lm -lX11 cc c/boid.c -o c/boid -lm -lX11
@ -46,16 +46,21 @@ c/boid:
c/anaconda: c/anaconda:
cc c/anaconda.c -o c/anaconda -lm -lX11 cc c/anaconda.c -o c/anaconda -lm -lX11
c/xgetnewwindow:
cc c/xgetnewwindow.c -o c/xgetnewwindow -lX11
c: c:
cp -f c/scream $(DESTDIR)$(PREFIX)/bin cp -f c/scream $(DESTDIR)$(PREFIX)/bin
cp -f c/timer $(DESTDIR)$(PREFIX)/bin cp -f c/timer $(DESTDIR)$(PREFIX)/bin
cp -f c/boid $(DESTDIR)$(PREFIX)/bin cp -f c/boid $(DESTDIR)$(PREFIX)/bin
cp -f c/anaconda $(DESTDIR)$(PREFIX)/bin cp -f c/anaconda $(DESTDIR)$(PREFIX)/bin
cp -f c/colors $(DESTDIR)$(PREFIX)/bin cp -f c/colors $(DESTDIR)$(PREFIX)/bin
cp -f c/xgetnewwindow $(DESTDIR)$(PREFIX)/bin
clean: clean:
rm c/scream rm -f c/scream
rm c/timer rm -f c/timer
rm c/boid rm -f c/boid
rm c/anaconda rm -f c/anaconda
rm c/simplestatus rm -f c/simplestatus
rm -f c/xgetnewwindow