File: Makefile

package info (click to toggle)
font3d 1.60-1
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 848 kB
  • ctags: 490
  • sloc: cpp: 4,888; makefile: 67
file content (53 lines) | stat: -rw-r--r-- 1,735 bytes parent folder | download
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
#====================================================================#
#  Makefile for Font3D Version 1.60                                  #
#--------------------------------------------------------------------#
#                                                                    #
#  This makefile is designed to be used with the GNU C++ compiler,   #
#  but hopefully it will work in other situations.  I never have     #
#  mastered the art of writing a good makefile, so any suggestions   #
#  in this area would be greatly appreciated.                        #
#                                                                    #
#  NOTE:  If you are trying to compile Font3D with the DJGPP set of  #
#         development tools (for MS-DOS), you will need to change    #
#         the '-lg++' switch in the LIBS macro to '-lgpp'.           #
#                                                                    #
#====================================================================#

EXE =   font3d
SRC =   build.cc font3d.cc geometry.cc truetype.cc
OBJ =   build.o  font3d.o  geometry.o  truetype.o

CCFLAGS	= -c -O

# If you use DJGPP to compile for MS-DOS use the following:
#
# CC	= gcc
# LIBS	= -lm -lgpp 
#
# Otherwise, most people will use these:

CC	= g++
#LIBS	= -lm -lg++
LIBS	= -lm 


$(EXE): $(OBJ) Makefile
	$(CC) -o $(EXE) $(OBJ) $(LIBS)

truetype.o:	truetype.h truetype.cc
		$(CC) $(CCFLAGS) truetype.cc

geometry.o:	vector.h geometry.h geometry.cc
		$(CC) $(CCFLAGS) geometry.cc

build.o:	vector.h truetype.h geometry.h font3d.h build.h build.cc
		$(CC) $(CCFLAGS) build.cc

font3d.o:	truetype.h font3d.h font3d.cc
		$(CC) $(CCFLAGS) font3d.cc

clean:
	rm -f $(EXE) $(OBJ) core*

reduce:
	rm -f $(OBJ) core*