File: Imakefile

package info (click to toggle)
wmdate 0.7-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 128 kB
  • ctags: 51
  • sloc: ansic: 202; makefile: 8
file content (139 lines) | stat: -rw-r--r-- 3,276 bytes parent folder | download | duplicates (3)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
XCOMM =======================================
XCOMM     U S E R  - configurable options
XCOMM - - - - - - - - - - - - - - - - - - - -

XCOMM ---------------------------------------
XCOMM ---- Set the master xpm to be used ----
XCOMM ---------------------------------------

XCOMM Select back_7colors if you have few
XCOMM colors available.

MASTER_XPM = back
# MASTER_XPM = back_7colors


XCOMM ---------------------------------------
XCOMM --- Set your compiler switches here ---
XCOMM ---------------------------------------

# CC: The C compiler to use. default: your default C compiler
# Examples:

# 	CC = /usr/local/egcs/bin/gcc
# 	CC = /usr/bin/cc
# 	CC = /usr/local/bin/gcc
# ----------

# CPPFLAGS: The C Pre-Processor flags. See man cc
# Examples:

# 	CPPFLAGS = -O9 -mpentium
# 	CPPFLAGS = -O -m486
# ----------

# BINDIR: The path to install to. default: /usr/X11R6/bin
# Examples:

# 	BINDIR = /usr/bin/X11/bin
# 	BINDIR = /usr/local/bin
# ----------

# LIB_PATH & INC_PATH: An extra set of paths to tell
# the compiler where needed libraries and include-files
# are located. Defaults:
# 	LIB_PATH: /usr/X11R6/lib, /usr/local/lib, .
# 	INC_PATH: /usr/local/include, .
# Examples:

# 	LIB_PATH = -L~/lib
# 	LIB_PATH = -L/usr/lib/X11
# 	INC_PATH = -I~/include
# 	INC_PATH = -I/usr/include/X11
# ----------


XCOMM ---------------------------------------
XCOMM ----- Workaround for XServer bug  -----
XCOMM ---------------------------------------

# If you're running one of the XServers that
# has an updating bug, uncomment the following
# line.
# This bug manifests (AFAIK), only in test mode,
# by not updating the test-date after more than
# one mousebutton-press. See INSTALL for the
# XServers with a bug (currently only XF86_SVGA).
# You can test for this bug running ./wmdate -t
# and then click in the calendar part multiple 
# times.

# XSERVER_BUG = true
# ----------



XCOMM
XCOMM - - - - - - - - - - - - - - - - - - - -
XCOMM    END  of user configurable options
XCOMM =======================================
XCOMM
XCOMM /-------------------------------------\
XCOMM    You should not need to edit below.
XCOMM \-------------------------------------/
XCOMM



# CDEBUGFLAGS = -ggdb -Wall -pedantic

MASTERXPM = xpm/$(MASTER_XPM).xpm

WMDATELIBS = -L/usr/X11R6/lib \
            -L/usr/local/lib \
			-L. \
 			-ldockapp \
            -lXpm -lXext -lX11

STD_INCLUDES = $(INC_PATH) -I/usr/local/include -I.
DEPLIBS = $(DEPXLIB) 

LOCAL_LIBRARIES = $(LIB_PATH) $(WMDATELIBS) $(XLIB)

LINTLIBS = $(LINTXLIB)

SRCS = wmdate.c
OBJS = wmdate.o


XCOMM ---------------------------------------
XCOMM            Compile Targets
XCOMM ---------------------------------------

all:: config wmdate

config::
	@echo '#include "$(MASTERXPM)"' > config.h
	@if test $(XSERVER_BUG); then \
		echo -e "`cat config.h`\n#define XSERVER_BUG" > config.h; \
	fi

distclean:: clean
	rm -f Makefile*
	rm -f config.h

uninstall::
	rm -f $(BINDIR)/wmdate

wmdate.c:	geometry.h xpm/$(MASTER_XPM).xpm


XCOMM ---------------------------------------
XCOMM             Create Makefile
XCOMM ---------------------------------------

ComplexProgramTarget(wmdate)

XCOMM - - - - - - - - - - - - - - - - - - - -
XCOMM                 e n d
XCOMM =======================================