aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--Makefile.solaris6
-rw-r--r--Makefile.static2
3 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3267228..3fcbd91 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CC=gcc
CFLAGS=-O2 -Wall -Wextra
LDFLAGS=
PROG="duser"
-SRC=duser.c duser.h user.c util.c log.c cfg.c
+SRC=duser.c user.c util.c log.c cfg.c
all:
$(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRC)
strip -s $(PROG)
diff --git a/Makefile.solaris b/Makefile.solaris
index 7660669..a7323a3 100644
--- a/Makefile.solaris
+++ b/Makefile.solaris
@@ -1,10 +1,10 @@
CC=gcc
-CFLAGS=-O2 -Wextra -Wall -D_NLINUX
+CFLAGS=-O2 -Wextra -Wall -D_NLINUX_
LDFLAGS=
PROG="duser"
-SRC=compat.c duser.c util.c user.c duser.h log.c cfg.c
+SRC=compat.c duser.c util.c user.c log.c cfg.c
all:
$(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRC)
- strip -s $(PROG)
+ strip -x $(PROG)
clean:
rm -rf $(PROG)
diff --git a/Makefile.static b/Makefile.static
index 514b53c..8f82d92 100644
--- a/Makefile.static
+++ b/Makefile.static
@@ -2,7 +2,7 @@ CC=gcc
CFLAGS=-O2 -Wall -Wextra -static
LDFLAGS=
PROG="duser"
-SRC=duser.c duser.h user.c util.c log.c cfg.c
+SRC=duser.c user.c util.c log.c cfg.c
all:
$(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(SRC)
strip -s $(PROG)