mkfile (327B)
1 # Copyright 2021 Jacob R. Edwards 2 3 CC = pcc 4 CFLAGS = -fPIC -O 5 OBJ = main.o 6 PREFIX = /usr/local 7 TARGET = atou 8 9 all:V: $TARGET 10 11 %.o: %.c 12 $CC $CFLAGS -c -o $stem.o $stem.c 13 14 $TARGET: $OBJ 15 $CC -o $TARGET $prereq 16 17 clean:V: 18 rm -f $TARGET $OBJ 19 20 install:V: $TARGET 21 cp -f $TARGET $PREFIX/bin 22 23 uninstall:V: 24 rm -f $PREFIX/bin/$TARGET