[go: up one dir, main page]

File: makefile

package info (click to toggle)
fltk1.1 1.1.10-29
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,620 kB
  • sloc: cpp: 76,654; ansic: 40,942; makefile: 1,703; sh: 438
file content (114 lines) | stat: -rw-r--r-- 2,944 bytes parent folder | download | duplicates (10)
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
#
# Name          : Watcom makefile for FLTK, multiplatform
#
# Author        : M. Nieuwenhoven
#
# The makefile has multiple targets:
# - clean       : Cleans all directories from files built during make
# - all         : Builds all targets for both debug and release
# - xy          : where x = D|R, Y = D|O|W|L, where only W (Win32) is
#                 currently supported by the source for Watcom.
#


!ifndef %FLTK
ERROR_MSG = Environment variable FLTK must have been set!
!endif

.BEFORE
!ifdef ERROR_MSG
    @echo .
    @echo $(ERROR_MSG)
    @echo .
    @%abort
!endif

ROOT=$(%FLTK)
PROJ=fltk

#
# This builds all library targets and the main programs
#
ALL : .SYMBOLIC
    set Clean=
    wmake -h dw
    wmake -h rw
#    wmake -h do
#    wmake -h ro
#    wmake -h dl
#    wmake -h rl

#
# Clean all directories. Call each target with a 'clean' target. Proper
# knowledge about cleaning can only be at the places where also the
# builds is done.
#
clean : .SYMBOLIC
    @echo Cleaning up.
    set Clean=CLEAN
    wmake -h dw
    wmake -h rw
#    wmake -h do
#    wmake -h ro
#    wmake -h dl
#    wmake -h rl

#
# Win32 Debug and Release targets
#
DW  : .SYMBOLIC
    @set OPTIONS=D=d O=w ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT)
    %make BuildOne

RW  : .SYMBOLIC
    @set OPTIONS=D=r O=w ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT)
    %make BuildOne

#
# OS/2 Debug and Release targets. Builds only jpeg, zlib and png libs for now.
#
DO  : .SYMBOLIC
    @set OPTIONS=D=d O=o ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT)
    %make BuildOne

RO  : .SYMBOLIC
    @set OPTIONS=D=r O=o ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT)
    %make BuildOne

#
# Linux Debug and Release targets. Environment variable XLIB must point to a directory
# which has a subdirectory X11 with X include files. Builds only jpeg, zlib and png libs for now.
#
DL  : .SYMBOLIC
    @set OPTIONS=D=d O=l ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT);$(%XLIB)
    %make BuildOne

RL  : .SYMBOLIC
    @set OPTIONS=D=r O=l ROOT=$(ROOT) PROJ=$(PROJ) EXTRA_INCLUDE_DIRS=$(ROOT);$(%XLIB)
    %make BuildOne

# Internal target to build the individual modules. The following macros must
# have been set: D (value D or R), O (D,O,W,L)

BuildOne : .SYMBOLIC

    @echo "=== making jpeg library ==="
    @cd $(ROOT)\jpeg
    @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN)
    @echo "=== making zlib library ==="
    @cd $(ROOT)\zlib
    @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN)
    @echo "=== making png library ==="
    @cd $(ROOT)\png
    @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN)
    @echo "=== making fltk libraries ==="
    @cd $(ROOT)\src
    @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN)
    @echo "=== making fluid ==="
    @cd $(ROOT)\fluid
    @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN)
    @echo "=== making test ==="
    @cd $(ROOT)\test
    @wmake -h -f makefile.wat $(%OPTIONS) $(%CLEAN)