wmload: Replace deprecated Imakefile with Makefile.

Update INSTALL to reflect changes.
This commit is contained in:
Doug Torrance 2015-04-07 02:45:09 -05:00 committed by Carlos R. Mafra
parent 9694733979
commit b0b77c699d
3 changed files with 22 additions and 22 deletions

View file

@ -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!!!! (;-)

View file

@ -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
View 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)