root / JX / trunk / libjx / Make.header

Revision 3, 2.0 kB (checked in by daboo, 2 years ago)

Full commit of JX-2.5.0 code

Line 
1# To use this file, first run "makemake" and then run "make".
2# (makemake is part of the JX distribution)
3
4# Useful directories
5
6JX_ROOT := ..
7
8JXDIR    := ./code
9JCOREDIR := ${JX_ROOT}/include/jcore
10XPMDIR   := ${JX_ROOT}/misc/xpm
11
12# Directories to search for header files
13
14SEARCHDIRS := -I${JXDIR} \
15              -I${JCOREDIR} \
16              -I${XPMDIR}/lib
17
18# makemake variables
19
20include ${JX_ROOT}/include/make/jx_constants
21include ${JX_ROOT}/include/make/jx_config
22
23DEPENDFLAGS := ${J_COMPILER_DEPEND_FLAGS} \
24               ${J_COMPILE_DEBUG} ${J_BUILD_SHARED_LIB} \
25               ${SEARCHDIRS}
26
27# make variables
28
29LOADLIBES :=
30LDFLAGS   :=
31
32#####
33
34LIB_NAME_ROOT := libjx-${JX_LIB_VERSION}
35OTHER_DEPS    := xpm
36include ${JX_ROOT}/include/make/default_lib_target
37
38.PHONY : Makefiles
39Makefiles:
40        @cd test; makemake; ${MAKE} Makefiles
41
42#
43# remove binaries
44#
45
46.PHONY : tidy
47tidy::
48        @cd test; ${MAKE} tidy
49
50.PHONY : clean
51clean::
52        @cd test; ${MAKE} clean
53
54#
55# libraries we require
56#
57
58.PHONY : xpm
59xpm:
60  ifdef JX_INCLUDE_LIBXPM
61        @-cd ${XPMDIR}; \
62      xmkmf -a > /dev/null; \
63      sed -e '/^[ ][ ]*MAKE =/d' < Makefile > Makefile.fixed; \
64      mv Makefile.fixed Makefile; \
65      ${MAKE} > /dev/null
66  endif
67
68#
69# JX source distribution  (DISTR_TAR_FILE)
70# JX binary distributions (DISTR_TAR_FILE)
71#
72
73JLIB := jx
74include ${JX_ROOT}/include/make/jx_targets
75
76.PHONY : jxsource
77jxsource::
78        @cd ${J_DISTR_TAR_DIR}; \
79     tar -rf ${DISTR_TAR_FILE} ${filter-out %~, \
80                                 ${shell cd ${J_DISTR_TAR_DIR}; echo \
81             ${JX}/libjx/*.fd \
82             ${JX}/libjx/image/* \
83             ${JX}/include/jximage \
84             ${JX}/include/jxstrings }}
85        @cd test; ${MAKE} jxsource
86
87# DO NOT DELETE THIS LINE -- Code Crusader depends on it.
88
89# This portion of the file was automatically generated by Code Crusader.
90# Do not edit it directly!
91# Any changes you make will be silently overwritten.
92
93# build libraries before main result
94
95# DO NOT DELETE THIS LINE -- Code Crusader depends on it.
Note: See TracBrowser for help on using the browser.