File: Imakefile

package info (click to toggle)
siag 3.0.6-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,652 kB
  • ctags: 6,202
  • sloc: ansic: 40,351; lisp: 3,435; sh: 143; makefile: 112
file content (36 lines) | stat: -rw-r--r-- 986 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "../topdir.mk"

OBJS = dummy.o siodi.o image.o hello.o

SRCS = dummy.c siodi.c image.c hello.c

LOCAL_LIBRARIES = -L../siod -lsiod -L../common -lcommon \
	-L../xcommon -lxcommon -lm $(SYSDEP_LIB) \
	$(DBLIB) -lXpm

EXTRA_DEFINES = -DSIAGHOME=\"$(SIAG_HOME)\"

XCOMM DEFINES = $(EXTRA_DEFINES)
DEPLIBS = $(XTOOLLIB) $(XLIB)
SYS_LIBRARIES = $(LOCAL_LIBRARIES) $(XTOOLLIB) $(XLIB)

AllTarget(dummy image hello)

depend:: ../topdir.mk

clean::
	$(RM) Makefile

SingleProgramTarget(dummy, dummy.o siodi.o, , )
InstallProgram(dummy,$(SIAG_HOME)/plugins)
SingleProgramTarget(image, image.o, , )
InstallProgram(image,$(SIAG_HOME)/plugins)
SingleProgramTarget(hello, hello.o, XawClientLibs, )
InstallProgram(hello,$(SIAG_HOME)/plugins)

install::
	@echo "Installing support files for plugins"
	$(MKDIRHIER) $(DESTDIR)$(SIAG_HOME)/plugins
	$(CP) *.scm $(DESTDIR)$(SIAG_HOME)/plugins
	$(MKDIRHIER) $(DESTDIR)$(SIAG_DOCS)/plugins
	$(CP) plugin.scm dummy.scm $(DESTDIR)$(SIAG_DOCS)/plugins