summaryrefslogtreecommitdiff
path: root/Makefile
blob: 75da1f8e644c7fb3b2ffc19061672115bf2a8091 (plain)
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
CC = gcc
WFLAGS = -Wmissing-prototypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -pedantic
CFLAGS = -g $(WFLAGS)
FONDUOBJS = fondu.o readnfnt.o
UFONDOBJS = ufond.o ufondbdf.o ufondpfb.o ufondttf.o crctab.o
DFONT2RESOBJS = dfont2res.o crctab.o
SHOWOBJS = showfond.o

bindir = /usr/local/bin

all: fondu ufond showfond dfont2res

fondu: $(FONDUOBJS)
	$(CC) $(CFLAGS) -o fondu $(FONDUOBJS)

ufond: $(UFONDOBJS)
	$(CC) $(CFLAGS) -o ufond $(UFONDOBJS)

showfond: $(SHOWOBJS)
	$(CC) $(CFLAGS) -o showfond $(SHOWOBJS)

dfont2res: $(DFONT2RESOBJS)
	$(CC) $(CFLAGS) -o dfont2res $(DFONT2RESOBJS)

clean:
	-rm -f *.o fondu ufond showfond dfont2res

install: all
	cp fondu ufond showfond dfont2res $(bindir)