diff options
-rw-r--r-- | Makefile.solaris-static | 10 | ||||
-rw-r--r-- | Makefile.static | 11 |
2 files changed, 21 insertions, 0 deletions
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) + |