Codebase list libdockapp / 6fcba04
libdockapp: Replace example Imakefiles with Makefiles. imake is deprecated. Doug Torrance authored 9 years ago Carlos R. Mafra committed 9 years ago
6 changed file(s) with 39 addition(s) and 53 deletion(s). Raw diff Collapse all Expand all
2121
2222 The API is described in dockapp.h
2323 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.
2525 You can compile them like:
2626
2727 cd examples/basic
28 xmkmf -a
2928 make
3029
3130 Optionally you can "make install" if you really like the example application.
00 nobase_doc_DATA = README \
1 basic/Imakefile \
1 basic/Makefile \
22 basic/README \
33 basic/ball_red.xpm \
44 basic/basic.c \
5 rectangles/Imakefile \
5 rectangles/Makefile \
66 rectangles/rectangles.c
77
88 EXTRA_DIST = $(nobase_doc_DATA)
+0
-29
examples/basic/Imakefile less more
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
-20
examples/rectangles/Imakefile less more
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