libdockapp: Replace example Imakefiles with Makefiles.
imake is deprecated.
Doug Torrance authored 9 years ago
Carlos R. Mafra committed 9 years ago
21 | 21 |
|
22 | 22 |
The API is described in dockapp.h
|
23 | 23 |
There are some examples in the examples directory. These aren't build by
|
24 | |
default. You will need imake and xmkmf to compile these.
|
|
24 |
default.
|
25 | 25 |
You can compile them like:
|
26 | 26 |
|
27 | 27 |
cd examples/basic
|
28 | |
xmkmf -a
|
29 | 28 |
make
|
30 | 29 |
|
31 | 30 |
Optionally you can "make install" if you really like the example application.
|
0 | 0 |
nobase_doc_DATA = README \
|
1 | |
basic/Imakefile \
|
|
1 |
basic/Makefile \
|
2 | 2 |
basic/README \
|
3 | 3 |
basic/ball_red.xpm \
|
4 | 4 |
basic/basic.c \
|
5 | |
rectangles/Imakefile \
|
|
5 |
rectangles/Makefile \
|
6 | 6 |
rectangles/rectangles.c
|
7 | 7 |
|
8 | 8 |
EXTRA_DIST = $(nobase_doc_DATA)
|
0 | |
|
1 | |
STD_INCLUDES = $(INC_PATH) -I/usr/local/include -I.
|
2 | |
DEPLIBS = $(DEPXLIB)
|
3 | |
|
4 | |
LOCAL_LIBRARIES = $(LIB_PATH) -L/usr/local/lib -L/usr/X11R6/lib \
|
5 | |
-L../../src/.libs \
|
6 | |
-ldockapp -lXpm -lX11
|
7 | |
|
8 | |
SRCS = basic.c
|
9 | |
OBJS = basic.o
|
10 | |
|
11 | |
|
12 | |
XCOMM -----------------------------------------------------------------------
|
13 | |
XCOMM knowledge about availability of library-functions
|
14 | |
XCOMM -----------------------------------------------------------------------
|
15 | |
|
16 | |
# Has srandomdev function?
|
17 | |
# + FreeBSD 4.6, OpenBSD 3.1, 4.2BSD, MacOS X
|
18 | |
# - Linux, Solaris, HP UX 11.00
|
19 | |
|
20 | |
#if defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture) || \
|
21 | |
defined(NetBSDArchitecture) || defined(DarwinArchitecture)
|
22 | |
CFLAGS += -DHAS_SRANDOMDEV
|
23 | |
#endif
|
24 | |
|
25 | |
CFLAGS += -DSRANDOMFUNC=$(SRANDOM_FUNC)
|
26 | |
|
27 | |
ComplexProgramTargetNoMan(basic)
|
28 | |
|
|
0 |
CC=gcc
|
|
1 |
INSTALL=install
|
|
2 |
PREFIX=/usr/local
|
|
3 |
CFLAGS+=-Wall `pkg-config --cflags dockapp`
|
|
4 |
LIBS=`pkg-config --libs dockapp`
|
|
5 |
|
|
6 |
basic: basic.o
|
|
7 |
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
8 |
|
|
9 |
basic.o: basic.c
|
|
10 |
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
|
11 |
|
|
12 |
install:
|
|
13 |
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
|
14 |
$(INSTALL) basic $(DESTDIR)$(PREFIX)/bin
|
|
15 |
|
|
16 |
clean:
|
|
17 |
rm -f basic basic.o
|
0 | |
|
1 | |
STD_INCLUDES = $(INC_PATH) -I/usr/local/include -I.
|
2 | |
DEPLIBS = $(DEPXLIB)
|
3 | |
|
4 | |
LOCAL_LIBRARIES = $(LIB_PATH) -L/usr/local/lib -L/usr/X11R6/lib \
|
5 | |
-L../../src/.libs \
|
6 | |
-ldockapp -lXpm -lX11
|
7 | |
|
8 | |
SRCS = rectangles.c
|
9 | |
OBJS = rectangles.o
|
10 | |
|
11 | |
|
12 | |
XCOMM -----------------------------------------------------------------------
|
13 | |
XCOMM knowledge about availability of library-functions
|
14 | |
XCOMM -----------------------------------------------------------------------
|
15 | |
|
16 | |
CFLAGS += -Wall -ansi -pedantic -ggdb
|
17 | |
|
18 | |
ComplexProgramTargetNoMan(rectangles)
|
19 | |
|
|
0 |
CC=gcc
|
|
1 |
INSTALL=install
|
|
2 |
PREFIX=/usr/local
|
|
3 |
CFLAGS+=-Wall `pkg-config --cflags dockapp`
|
|
4 |
LIBS=`pkg-config --libs dockapp`
|
|
5 |
|
|
6 |
rectangles: rectangles.o
|
|
7 |
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
8 |
|
|
9 |
rectangles.o: rectangles.c
|
|
10 |
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
|
11 |
|
|
12 |
install:
|
|
13 |
$(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
|
|
14 |
$(INSTALL) rectangles $(DESTDIR)$(PREFIX)/bin
|
|
15 |
|
|
16 |
clean:
|
|
17 |
rm -f rectangles rectangles.o
|