| 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 | |
|---|
| 6 | JX_ROOT := .. |
|---|
| 7 | |
|---|
| 8 | JXDIR := ./code |
|---|
| 9 | JCOREDIR := ${JX_ROOT}/include/jcore |
|---|
| 10 | XPMDIR := ${JX_ROOT}/misc/xpm |
|---|
| 11 | |
|---|
| 12 | # Directories to search for header files |
|---|
| 13 | |
|---|
| 14 | SEARCHDIRS := -I${JXDIR} \ |
|---|
| 15 | -I${JCOREDIR} \ |
|---|
| 16 | -I${XPMDIR}/lib |
|---|
| 17 | |
|---|
| 18 | # makemake variables |
|---|
| 19 | |
|---|
| 20 | include ${JX_ROOT}/include/make/jx_constants |
|---|
| 21 | include ${JX_ROOT}/include/make/jx_config |
|---|
| 22 | |
|---|
| 23 | DEPENDFLAGS := ${J_COMPILER_DEPEND_FLAGS} \ |
|---|
| 24 | ${J_COMPILE_DEBUG} ${J_BUILD_SHARED_LIB} \ |
|---|
| 25 | ${SEARCHDIRS} |
|---|
| 26 | |
|---|
| 27 | # make variables |
|---|
| 28 | |
|---|
| 29 | LOADLIBES := |
|---|
| 30 | LDFLAGS := |
|---|
| 31 | |
|---|
| 32 | ##### |
|---|
| 33 | |
|---|
| 34 | LIB_NAME_ROOT := libjx-${JX_LIB_VERSION} |
|---|
| 35 | OTHER_DEPS := xpm |
|---|
| 36 | include ${JX_ROOT}/include/make/default_lib_target |
|---|
| 37 | |
|---|
| 38 | .PHONY : Makefiles |
|---|
| 39 | Makefiles: |
|---|
| 40 | @cd test; makemake; ${MAKE} Makefiles |
|---|
| 41 | |
|---|
| 42 | # |
|---|
| 43 | # remove binaries |
|---|
| 44 | # |
|---|
| 45 | |
|---|
| 46 | .PHONY : tidy |
|---|
| 47 | tidy:: |
|---|
| 48 | @cd test; ${MAKE} tidy |
|---|
| 49 | |
|---|
| 50 | .PHONY : clean |
|---|
| 51 | clean:: |
|---|
| 52 | @cd test; ${MAKE} clean |
|---|
| 53 | |
|---|
| 54 | # |
|---|
| 55 | # libraries we require |
|---|
| 56 | # |
|---|
| 57 | |
|---|
| 58 | .PHONY : xpm |
|---|
| 59 | xpm: |
|---|
| 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 | |
|---|
| 73 | JLIB := jx |
|---|
| 74 | include ${JX_ROOT}/include/make/jx_targets |
|---|
| 75 | |
|---|
| 76 | .PHONY : jxsource |
|---|
| 77 | jxsource:: |
|---|
| 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. |
|---|