-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
42 lines (34 loc) · 1014 Bytes
/
makefile
File metadata and controls
42 lines (34 loc) · 1014 Bytes
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
# --------------------------------------------------------------------
#
# This makefile for Linux was written on Oct 10, 2022 by Marmayogi, Astrologer and Palmist, Sri Mahakali Jothida Nilayam, Coimbatore, India.
#
# Usage-1:
# Invocation of make from terminal: without any command line arguments or with one argument "all" as follows:
#
# $ make
# or
# $ make all
#
# The above commands will create "ttf2postscriptcid" which is an executable binary file.
#
# Usage-2:
# Invocation of make from terminal, with a command line argument "clean", as follows:
#
# $ make clean
#
# This will delete the following:
# - ttf2postscriptcid executable binary
# - main.o
#
# --------------------------------------------------------------------
#all: ttf2postscriptcid
objects = main.o
CC = g++
CFLAGS = -g -Wall
all: ttf2postscriptcid
ttf2postscriptcid: $(objects)
$(CC) $(CFLAGS) -o ttf2postscriptcid $(objects)
main.o: main.cpp ttf.h
$(CC) $(CFLAGS) -c main.cpp
clean:
@rm ttf2postscriptcid $(objects)