-
Notifications
You must be signed in to change notification settings - Fork 2
/
Imakefile.R4
50 lines (40 loc) · 1.62 KB
/
Imakefile.R4
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: Imakefile.R4,v 1.16 1992/03/17 14:08:41 kato Exp kato $
ONEKOLIBDIR = $(LIBDIR)/oneko
BMFILES = bitmaps/\*.xbm
BMDIR = $(ONEKOLIBDIR)/oneko
TORA_BMFILES = bitmaps.tora/\*.xbm
TORA_BMDIR = $(ONEKOLIBDIR)/tora
KOTATSUCURSOR = kotatsu.xbm kotatsu_mask.xbm
POSTCURSOR = post.xbm post_mask.xbm
MOUSECURSOR = cursor.xbm cursor_mask.xbm
CURSORFILES = $(KOTATSUCURSOR) $(POSTCURSOR) $(MOUSECURSOR)
HELPFILE = help
LOCAL_LIBRARIES = $(XMULIB) $(XLIB)
SYS_LIBRARIES = -lm
DEPLIBS = $(DEPXLIB)
CDEBUGFLAGS = -g
DEFINES = -DSHAPE -DONEKODIR=\"$(ONEKOLIBDIR)\" -DLIBDIR=\"$(LIBDIR)\"
# DEFINES = -DONEKODIR=\"$(ONEKOLIBDIR)\" -DLIBDIR=\"$(LIBDIR)\"
SRCS = oneko.c event.c init.c mail.c resource.c state.c
OBJS = oneko.o event.o init.o mail.o resource.o state.o
ComplexProgramTarget(oneko)
CppScriptTarget(Oneko.ad,Oneko.cpp,-DOnekoLib=$(ONEKOLIBDIR),)
install::
$(MKDIRHIER) $(LIBDIR)/oneko
$(MKDIRHIER) $(LIBDIR)/oneko/oneko
$(MKDIRHIER) $(LIBDIR)/oneko/tora
install:: $(BINDIR)/oneko
$(RM) $(BINDIR)/tora
$(LN) $(BINDIR)/oneko $(BINDIR)/tora
InstallMultipleDestFlags(install,$(HELPFILE),$(ONEKOLIBDIR),$(INSTDATFLAGS))
InstallMultipleDestFlags(install,$(BMFILES),$(BMDIR),$(INSTDATFLAGS))
InstallMultipleDestFlags(install,$(TORA_BMFILES),$(TORA_BMDIR),$(INSTDATFLAGS))
InstallMultipleDestFlags(install,$(CURSORFILES),$(ONEKOLIBDIR),$(INSTDATFLAGS))
InstallAppDefaults(Oneko)
clean::
$(RM) Oneko.ad
$(RM) FLOW
# for debug.
SingleProgramTarget(restest,resource.o restest.o,$(LOCAL_LIBRARIES),)
FLOW: $(SRCS)
cflow $(SRCS) | grep ' [A-WYZ]' > FLOW