1.1 --- a/Makefile Mon Dec 14 01:30:40 2009 +0100
1.2 +++ b/Makefile Mon Dec 14 01:39:28 2009 +0100
1.3 @@ -4,6 +4,7 @@
1.4 VERSION=0.1
1.5 USER=root
1.6 GROUP=root
1.7 +CFLAGS?=-O2 -Wall
1.8
1.9 all: config.h sup
1.10
1.11 @@ -11,10 +12,10 @@
1.12 cp config.def.h config.h
1.13
1.14 sup.o: config.h sup.c
1.15 - ${CC} -c sup.c
1.16 + ${CC} ${CFLAGS} -c sup.c
1.17
1.18 sup: sup.o
1.19 - ${CC} sup.o -o sup
1.20 + ${CC} ${LDFLAGS} sup.o -o sup
1.21
1.22 clean:
1.23 rm -f sup.o sup
2.1 --- a/sup.c Mon Dec 14 01:30:40 2009 +0100
2.2 +++ b/sup.c Mon Dec 14 01:39:28 2009 +0100
2.3 @@ -1,7 +1,8 @@
2.4 /* pancake <nopcode.org> -- Copyleft 2009 */
2.5
2.6 +#include <errno.h>
2.7 #include <stdio.h>
2.8 -#include <errno.h>
2.9 +#include <unistd.h>
2.10 #include <string.h>
2.11 #include <sys/stat.h>
2.12
2.13 @@ -23,7 +24,6 @@
2.14 }
2.15
2.16 int main(int argc, char **argv) {
2.17 - char *cmd;
2.18 int i, uid, gid, ret;
2.19
2.20 if (argc < 2 || !strcmp (argv[1], "-h"))