From d26ffb8304ce88de613a62455976c8be3724bf2b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 20 Apr 2011 23:48:26 -0400 Subject: Initial commit. For static compiling. --- Makefile.solaris-static | 10 ++++++++++ Makefile.static | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Makefile.solaris-static create mode 100644 Makefile.static diff --git a/Makefile.solaris-static b/Makefile.solaris-static new file mode 100644 index 0000000..8e63af2 --- /dev/null +++ b/Makefile.solaris-static @@ -0,0 +1,10 @@ +CC=gcc +CFLAGS=-O2 -Wextra -Wall -static -D_NLINUX +LDFLAGS= +PROG="duser" +SRC=compat.c duser.c util.c user.c duser.h log.c cfg.c +all: + $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRC) + strip -s $(PROG) +clean: + rm -rf $(PROG) diff --git a/Makefile.static b/Makefile.static new file mode 100644 index 0000000..514b53c --- /dev/null +++ b/Makefile.static @@ -0,0 +1,11 @@ +CC=gcc +CFLAGS=-O2 -Wall -Wextra -static +LDFLAGS= +PROG="duser" +SRC=duser.c duser.h user.c util.c log.c cfg.c +all: + $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRC) + strip -s $(PROG) +clean: + rm -rf $(PROG) + -- cgit