Commit 52b35f6e authored by pancake@dazo's avatar pancake@dazo

* Handle CFLAGS/LDFLAGS in Makefile

  - Build with -O2 -Wall by default
* Clean up some warnings
parent a9bc8aa0
......@@ -4,6 +4,7 @@ PREFIX?=/usr
VERSION=0.1
USER=root
GROUP=root
CFLAGS?=-O2 -Wall
all: config.h sup
......@@ -11,10 +12,10 @@ config.h:
cp config.def.h config.h
sup.o: config.h sup.c
${CC} -c sup.c
${CC} ${CFLAGS} -c sup.c
sup: sup.o
${CC} sup.o -o sup
${CC} ${LDFLAGS} sup.o -o sup
clean:
rm -f sup.o sup
......
/* pancake <nopcode.org> -- Copyleft 2009 */
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h>
......@@ -23,7 +24,6 @@ static int die(int ret, const char *str) {
}
int main(int argc, char **argv) {
char *cmd;
int i, uid, gid, ret;
if (argc < 2 || !strcmp (argv[1], "-h"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment