wmload: Replace deprecated Imakefile with Makefile.
Update INSTALL to reflect changes.
This commit is contained in:
parent
9694733979
commit
b0b77c699d
|
@ -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'
|
ALSO, check DESTDIR and BINDIR; as they are now, a `make install'
|
||||||
will put the wmload binary in /usr/local/bin.
|
will put the wmload binary in /usr/local/bin.
|
||||||
2. `xmkmf'
|
2. `make'
|
||||||
3. `make'
|
3. `make install'
|
||||||
4. `make install'
|
4. Enjoy!!!! (;-)
|
||||||
5. Enjoy!!!! (;-)
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
|
18
wmload/Makefile
Normal file
18
wmload/Makefile
Normal file
|
@ -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)
|
Loading…
Reference in a new issue