libdockapp: Replace example Imakefiles with Makefiles.
imake is deprecated.
This commit is contained in:
parent
19bf1f277f
commit
b22f634ce2
|
@ -22,11 +22,10 @@ options:
|
|||
|
||||
The API is described in dockapp.h
|
||||
There are some examples in the examples directory. These aren't build by
|
||||
default. You will need imake and xmkmf to compile these.
|
||||
default.
|
||||
You can compile them like:
|
||||
|
||||
cd examples/basic
|
||||
xmkmf -a
|
||||
make
|
||||
|
||||
Optionally you can "make install" if you really like the example application.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
nobase_doc_DATA = README \
|
||||
basic/Imakefile \
|
||||
basic/Makefile \
|
||||
basic/README \
|
||||
basic/ball_red.xpm \
|
||||
basic/basic.c \
|
||||
rectangles/Imakefile \
|
||||
rectangles/Makefile \
|
||||
rectangles/rectangles.c
|
||||
|
||||
EXTRA_DIST = $(nobase_doc_DATA)
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
|
||||
STD_INCLUDES = $(INC_PATH) -I/usr/local/include -I.
|
||||
DEPLIBS = $(DEPXLIB)
|
||||
|
||||
LOCAL_LIBRARIES = $(LIB_PATH) -L/usr/local/lib -L/usr/X11R6/lib \
|
||||
-L../../src/.libs \
|
||||
-ldockapp -lXpm -lX11
|
||||
|
||||
SRCS = basic.c
|
||||
OBJS = basic.o
|
||||
|
||||
|
||||
XCOMM -----------------------------------------------------------------------
|
||||
XCOMM knowledge about availability of library-functions
|
||||
XCOMM -----------------------------------------------------------------------
|
||||
|
||||
# Has srandomdev function?
|
||||
# + FreeBSD 4.6, OpenBSD 3.1, 4.2BSD, MacOS X
|
||||
# - Linux, Solaris, HP UX 11.00
|
||||
|
||||
#if defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture) || \
|
||||
defined(NetBSDArchitecture) || defined(DarwinArchitecture)
|
||||
CFLAGS += -DHAS_SRANDOMDEV
|
||||
#endif
|
||||
|
||||
CFLAGS += -DSRANDOMFUNC=$(SRANDOM_FUNC)
|
||||
|
||||
ComplexProgramTargetNoMan(basic)
|
||||
|
18
libdockapp/examples/basic/Makefile
Normal file
18
libdockapp/examples/basic/Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
CC=gcc
|
||||
INSTALL=install
|
||||
PREFIX=/usr/local
|
||||
CFLAGS+=-Wall `pkg-config --cflags dockapp`
|
||||
LIBS=`pkg-config --libs dockapp`
|
||||
|
||||
basic: basic.o
|
||||
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
basic.o: basic.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
||||
|
||||
install:
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||
$(INSTALL) basic $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
clean:
|
||||
rm -f basic basic.o
|
|
@ -1,20 +0,0 @@
|
|||
|
||||
STD_INCLUDES = $(INC_PATH) -I/usr/local/include -I.
|
||||
DEPLIBS = $(DEPXLIB)
|
||||
|
||||
LOCAL_LIBRARIES = $(LIB_PATH) -L/usr/local/lib -L/usr/X11R6/lib \
|
||||
-L../../src/.libs \
|
||||
-ldockapp -lXpm -lX11
|
||||
|
||||
SRCS = rectangles.c
|
||||
OBJS = rectangles.o
|
||||
|
||||
|
||||
XCOMM -----------------------------------------------------------------------
|
||||
XCOMM knowledge about availability of library-functions
|
||||
XCOMM -----------------------------------------------------------------------
|
||||
|
||||
CFLAGS += -Wall -ansi -pedantic -ggdb
|
||||
|
||||
ComplexProgramTargetNoMan(rectangles)
|
||||
|
18
libdockapp/examples/rectangles/Makefile
Normal file
18
libdockapp/examples/rectangles/Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
CC=gcc
|
||||
INSTALL=install
|
||||
PREFIX=/usr/local
|
||||
CFLAGS+=-Wall `pkg-config --cflags dockapp`
|
||||
LIBS=`pkg-config --libs dockapp`
|
||||
|
||||
rectangles: rectangles.o
|
||||
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
rectangles.o: rectangles.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
||||
|
||||
install:
|
||||
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
||||
$(INSTALL) rectangles $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
clean:
|
||||
rm -f rectangles rectangles.o
|
Loading…
Reference in a new issue