[Pkg-wmaker-commits] [wmload] 09/58: wmload: Replace deprecated Imakefile with Makefile.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:36:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmload.
commit 9f78cd7c97d1e6f926d0820e83750559c0667ba0
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue Apr 7 02:45:09 2015 -0500
wmload: Replace deprecated Imakefile with Makefile.
Update INSTALL to reflect changes.
---
INSTALL | 9 ++++-----
Imakefile | 17 -----------------
Makefile | 18 ++++++++++++++++++
3 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/INSTALL b/INSTALL
index 2217d98..ce0151f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,8 +1,7 @@
-1. Check the Imakefile to see if all the LIBS are ok for your system.
+1. Check the Makefile to see if all the LIBS are ok for your system.
ALSO, check DESTDIR and BINDIR; as they are now, a `make install'
will put the wmload binary in /usr/local/bin.
-2. `xmkmf'
-3. `make'
-4. `make install'
-5. Enjoy!!!! (;-)
+2. `make'
+3. `make install'
+4. Enjoy!!!! (;-)
diff --git a/Imakefile b/Imakefile
deleted file mode 100644
index d91cbce..0000000
--- a/Imakefile
+++ /dev/null
@@ -1,17 +0,0 @@
-/* installation directory is the combination of $(DESTDIR) and $(BINDIR)*/
-DESTDIR = /usr/local
-BINDIR = /bin
-
-XPMLIB = -L/usr/lib/X11 -lXpm -lm
-DEPLIBS = $(DEPXLIB)
-
-LOCAL_LIBRARIES = $(XPMLIB) $(XLIB)
-
-LINTLIBS = $(LINTXLIB)
-
-EXTRA_DEFINES = -Debug /* CFLAGS = -Debug */
-
-SRCS = wmload.c
-OBJS = wmload.o
-
-ComplexProgramTarget(wmload)
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..20c1547
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+OBJS = wmload.o
+LIBS = -lX11 -lXpm -lXext -lm
+PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
+INSTALL = install
+
+%.o: %.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+
+wmload: $(OBJS)
+ $(CC) $(LDFLAGS) -o wmload $(OBJS) $(LIBS)
+
+clean:
+ rm -f $(OBJS) wmload
+
+install: wmload
+ $(INSTALL) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) wmload $(DESTDIR)$(BINDIR)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmload.git
More information about the Pkg-wmaker-commits
mailing list