root / JX / trunk / tutorial / 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
8DIR01 := ./01-HelloWorld
9DIR02 := ./02-MenuHello
10DIR03 := ./03-DialogHello
11DIR04 := ./04-Widget
12DIR05 := ./05-Scrolling
13DIR06 := ./06-DragPainter
14DIR07 := ./07-Printing
15DIR08 := ./08-SimpleTable
16DIR09 := ./09-DataTable
17DIR10 := ./10-SelectionTable
18DIR11 := ./11-EditTable
19DIR12 := ./12-Clipboard
20DIR13 := ./13-Undo
21DIR14 := ./14-DragAndDrop
22
23JCOREDIR := ${JX_ROOT}/include/jcore
24JXDIR    := ${JX_ROOT}/include/jx
25
26JLIBDIR     := ${JX_ROOT}/lib
27JCORELIBDIR := ${JX_ROOT}/libjcore
28JXLIBDIR    := ${JX_ROOT}/libjx
29
30# Directories to search for header files
31
32SEARCHDIRS := -I${DIR01} -I${DIR02} -I${DIR03} -I${DIR04} \
33              -I${DIR05} -I${DIR06} -I${DIR07} -I${DIR08} \
34              -I${DIR09} -I${DIR10} -I${DIR11} -I${DIR12} \
35              -I${DIR13} -I${DIR14} \
36              -I${JCOREDIR} \
37              -I${JXDIR}
38
39# other constants
40
41TUTORIAL_STRING_FILES := */strings
42
43# makemake variables
44
45J_STRING_FILES := ${TUTORIAL_STRING_FILES}
46
47include ${JX_ROOT}/include/make/jx_constants
48include ${JX_ROOT}/include/make/jx_config
49
50DEPENDFLAGS := ${J_COMPILER_DEPEND_FLAGS} \
51               -g ${SEARCHDIRS}
52
53TOUCHPATHS := ${JCORELIBDIR} ${JXLIBDIR}
54
55# make variables
56
57LOADLIBES := ${J_STD_LIBS}
58LDFLAGS   :=
59
60#####
61
62.PHONY : default
63default: libs strings all
64
65.PHONY : Makefiles
66Makefiles:
67
68#
69# string data
70#
71
72.PHONY : strings
73strings:
74        compile_jstrings ${J_STRING_FILES} \
75      --code kTutorialStringData TutorialStringData.h
76
77#
78# required libraries
79#
80
81.PHONY : libs
82libs:
83        @for path in ${TOUCHPATHS}; do ( if cd $$path; then ${MAKE}; fi ) done
84
85#
86# JX source distribution (DISTR_TAR_FILE)
87#
88
89SRC_FILE_DIR := ${JX}/tutorial
90
91.PHONY : jxsource
92jxsource:
93        @cd ${J_DISTR_TAR_DIR}; \
94     tar -rf ${DISTR_TAR_FILE} ${filter-out %.o %~ Makefile, \
95                                 ${shell cd ${J_DISTR_TAR_DIR}; echo \
96             ${addprefix ${SRC_FILE_DIR}/, README Make.*} \
97             ${SRC_FILE_DIR}/*/* }}
Note: See TracBrowser for help on using the browser.