diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-20 23:48:26 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2011-04-20 23:48:26 -0400 |
commit | d26ffb8304ce88de613a62455976c8be3724bf2b (patch) | |
tree | dc1cfbe31ec3722adbbcd217aa9a2dbc9664bbec | |
parent | c7cd57b16094e102b999daa01f4fcffcd92bf5ba (diff) | |
download | duser-d26ffb8304ce88de613a62455976c8be3724bf2b.tar.gz |
Initial commit. For static compiling.
-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) + |