-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·190 lines (152 loc) · 7.36 KB
/
Makefile
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#================================[[ beg-code ]]================================#
#===(user defined)=========================================#
# basename of executable, header, and all code files
NAME_BASE = yCOLOR
# additional standard and outside libraries
# LIB_STD = -lm -lX11 -lGL -lncurses -ltinfo
LIB_STD = -lm -lX11 -lGL
# all heatherly libraries used, debug versions whenever available
LIB_MINE = -lySTR_debug -lyVIHUB_debug
# directory for production code, no trailing slash
INST_DIR = /usr/local/bin
#===(optional)=============================================#
# extra include directories required
INC_MINE =
# utilities generated, separate from main program
NAME_UTIL = iris
# libraries only for the utilities
LIB_UTIL = -lySTR_debug -lyX11_debug -lyCOLOR_debug -lyFONT_debug
LIB_FOUND = -lyMODE_debug -lyKEYS_debug -lyFILE_debug -lyVIEW_debug
LIB_MAJOR = -lyMAP_debug -lyCMD_debug -lyMACRO_debug -lySRC_debug -lyMARK_debug -lyMACRO_debug
LIB_OPENGL = -lyVIOPENGL_debug -lyX11_debug -lyFONT_debug -lyCOLOR_debug -lyGLTEX_debug
LIB_OTHER = -lyVAR_debug -lySTR_debug
LIB_UTIL = $(LIB_FOUND) $(LIB_MAJOR) $(LIB_OPENGL) $(LIB_OTHER)
#===(post-processing)======================================#
# create a rule for...
#install_prep :
#remove_prep :
#===(master template)======================================#
include /usr/local/sbin/zeno_make
#===(post-processing)======================================#
# create a rule for...
#install_post :
#remove_post :
#================================[[ end-code ]]================================#
#*============================----beg-of-source---============================*#
#===(current variables)=================================================================================================================================================#
#BASE = yCOLOR
#DEBUG = ${BASE}_debug
#UNIT = ${BASE}_unit
#HDIR = /home/system/yCOLOR.color_scheme_creator
#IDIR = /usr/local/bin
#*---(library documentation)----------*#
#MNUM = 3
#MDIR = /usr/share/man/man${MNUM}
#MBASE = ${BASE}.${MNUM}
#*---(overview)-----------------------*#
#ONUM = 0
#ODIR = /usr/share/man/man${ONUM}
#OBASE = ${BASE}.${ONUM}
#===(compilier variables)===============================================================================================================================================#
# must have "-x c" on gcc line so stripped files work with alternate extensions
#COMP = gcc -c -std=gnu89 -x c -g -pg -Wall -Wextra
#INCS = -I/usr/local/include
#===(linker options)====================================================================================================================================================================================================================================================================================#
#------ (0)-------------- (1)-------------- (2)-------------- (3)-------------- (4)-------------- (5)-------------- (6)-------------- (7)-------------- (8)-------------- (9)-------------- (A)-------------- (B)-------------- (C)-------------- (D)-------------- (E)-------------- (F)--------------
#LINK = gcc
#LIBDIR = -L/usr/local/lib
#LIBS = ${LIBDIR} -lX11 -lGL -lm -lySTR -lyURG
#LIBD = ${LIBDIR} -lX11 -lGL -lm -lySTR_debug -lyURG_debug -lyLOG
#LIBU = ${LIBDIR} -lX11 -lGL -lm -lySTR_debug -lyURG_debug -lyLOG -lyUNIT -lyVAR
#===(file lists)============================================================================================================================================================================#
#------ (0)-------------- (1)-------------- (2)-------------- (3)-------------- (4)-------------- (5)-------------- (6)-------------- (7)-------------- (8)-------------- (9)-------------- (A)-------------- (B)-------------- (C)-------------- (D)-------------- (5)--------------
#HEADS = ${BASE}.h ${BASE}_priv.h
#OBJS = ${BASE}.os
#OBJD = ${BASE}.o
#OBJU = ${OBJD}.o ${UNIT}.o
#*---(make variables)-----------------*#
#COPY = cp -f
#CLEAN = rm -f
#PRINT = @printf
#STRIP = @grep -v -e " DEBUG_" -e " yLOG_"
#*---(executables)--------------------*#
#all : ${DEBUG} ${BASE} ${UNIT} ${BASE}_make
#all : ${DEBUG} ${BASE} ${BASE}_make
#${BASE} : ${OBJS}
# ${LINK} -shared -Wl,-soname,lib${BASE}.so.1 ${LIBS} -o lib${BASE}.so.1.0 ${OBJS}
# ar rcs lib${BASE}.a ${OBJS}
#${DEBUG} : ${OBJD}
# ${LINK} -shared -Wl,-soname,lib${DEBUG}.so.1 ${LIBD} -o lib${DEBUG}.so.1.0 ${OBJD}
# ar rcs lib${DEBUG}.a ${OBJD}
#${BASE}_make : ${BASE}_make.o
# ${LINK} -o ${BASE}_make ${BASE}_make.os ${LIBS} -lyX11 -lyCOLOR -lyFONT
# ${LINK} -o ${BASE}_make_debug ${BASE}_make.os ${LIBD} -lyX11 -lyCOLOR -lyFONT
#*---(components)---------------------*#
#${BASE}.o : ${HEADS} ${BASE}.c
# ${COMP} -fPIC ${BASE}.c ${INC}
# ${STRIP} ${BASE}.c > ${BASE}.cs
# ${COMP} -fPIC ${BASE}.cs -o ${BASE}.os ${INC}
#${BASE}_make.o : ${HEADS} ${BASE}_make.c
# ${COMP} -fPIC ${BASE}_make.c ${INC}
# ${STRIP} ${BASE}_make.c > ${BASE}_make.cs
# ${COMP} -fPIC ${BASE}_make.cs -o ${BASE}_make.os ${INC}
#*---(housecleaning)------------------*#
#clean :
# ${PRINT} "\n--------------------------------------\n"
# ${PRINT} "cleaning out local object, backup, and temp files\n"
# ${CLEAN} lib${BASE}.so.1
# ${CLEAN} lib${BASE}.so.1.0
# ${CLEAN} lib${DEBUG}.so.1
# ${CLEAN} lib${DEBUG}.so.1.0
# ${CLEAN} *.o
# ${CLEAN} *.cs
# ${CLEAN} *.os
# ${CLEAN} *~
# ${CLEAN} temp*
# ${CLEAN} ${BASE}_unit.c
#bigclean :
# ${PRINT} "\n--------------------------------------\n"
# ${PRINT} "clean out local swap files\n"
# ${CLEAN} '.'*.sw?
#remove :
# ${PRINT} "\n--------------------------------------\n"
# ${PRINT} "remove ${BASE} from production\n"
# _lib -d ${BASE}
# _lib -d ${DEBUG}
# ldconfig
#install :
# #---(production version)--------------#
# sha1sum lib${BASE}.so.1.0
# _lib -s ${BASE}
# ldconfig
# sha1sum lib${BASE}.a
# _lib -a ${BASE}
# ldconfig
# #---(debug version)-------------------#
# sha1sum lib${DEBUG}.so.1.0
# _lib -S ${DEBUG}
# ldconfig
# sha1sum lib${DEBUG}.a
# _lib -A ${DEBUG}
# ldconfig
# #---(production version)--------------#
# ${COPY} ${BASE}_make ${IDIR}/
# chown root:root ${IDIR}/${BASE}_make
# chmod 0755 ${IDIR}/${BASE}_make
# @sha1sum ${BASE}_make
# #---(debug version)-------------------#
# ${COPY} ${BASE}_make_debug ${IDIR}/
# chown root:root ${IDIR}/${BASE}_make_debug
# chmod 0755 ${IDIR}/${BASE}_make_debug
# @sha1sum ${BASE}_make_debug
# #---(overview)------------------------#
# rm -f ${ODIR}/${OBASE}.bz2
# cp -f ${OBASE} ${ODIR}
# bzip2 ${ODIR}/${OBASE}
# chmod 0644 ${ODIR}/${OBASE}.bz2
# #---(documentation)-------------------#
# rm -f ${MDIR}/${MBASE}.bz2
# cp -f ${MBASE} ${MDIR}
# bzip2 ${MDIR}/${MBASE}
# chmod 0644 ${MDIR}/${MBASE}.bz2
# #---(done)----------------------------#