| 1 |
CC = gcc |
| 2 |
CFLAGS = -Wall -g |
| •3 |
DEFS = -DHAVE_XLIB -DHAVE_HBF -DHAVE_FREETYPE |
| 4 |
|
| 5 |
|
| 6 |
INCS = -I. `pkg-config gtk+-2.0 --cflags freetype2 --cflags` |
| 7 |
LIBS = `pkg-config gtk+-2.0 --libs freetype2 --libs` |
| 8 |
|
| 9 |
HBF= |
| 10 |
|
| 11 |
SRCS = bdf.c bdfcons.c bdffnt.c bdfgname.c bdfgrab.c bdfgrid.c bdfotf.c \ |
| 12 |
bdfpkgf.c bdfpsf.c $(HBF) \ |
| 13 |
labcon.c \ |
| 14 |
grayswatch.c \ |
| 15 |
glyphedit.c \ |
| 16 |
glyphtest.c \ |
| 17 |
fontgrid.c \ |
| 18 |
gectrl.c \ |
| 19 |
gbdfed.c \ |
| 20 |
guiedit.c \ |
| 21 |
guigedit.c \ |
| 22 |
guifile.c \ |
| 23 |
guihelp.c \ |
| 24 |
guiops.c \ |
| 25 |
guipref.c \ |
| 26 |
guiutil.c |
| 27 |
|
| 28 |
OBJS = $(SRCS:%.c=%.o) |
| 29 |
|
| 30 |
all: gbdfed |
| 31 |
|
| 32 |
gbdfed: $(OBJS) |
| 33 |
$(CC) $(STATIC) $(CFLAGS) $(OBJS) -o gbdfed $(LIBS) |
| 34 |
|
| 35 |
.c.o: |
| 36 |
$(CC) $(CFLAGS) $(DEFS) $(INCS) -c $< -o $@ |
| 37 |
|
| 38 |
clean: |
| 39 |
/bin/rm -f *~ *BAK *CKP *.o |
| 40 |
|
| 41 |
distclean: clean |
| 42 |
/bin/rm -f gbdfed |
| 43 |
|
| 44 |
realclean: distclean |
| 45 |
|
| 46 |
deps: |
| 47 |
gcc -I. -MM $(SRCS) > deps |
| 48 |
|
| 49 |
# |
| 50 |
# Dependencies. |
| 51 |
# |
| 52 |
bdf.o: bdf.c bdfP.h bdf.h |
| 53 |
bdfcons.o: bdfcons.c bdfP.h bdf.h |
| 54 |
bdffnt.o: bdffnt.c bdfP.h bdf.h |
| 55 |
bdfgname.o: bdfgname.c bdfP.h bdf.h |
| 56 |
bdfgrab.o: bdfgrab.c bdfP.h bdf.h |
| 57 |
bdfgrid.o: bdfgrid.c bdfP.h bdf.h |
| 58 |
bdfotf.o: bdfotf.c |
| 59 |
bdfpkgf.o: bdfpkgf.c bdfP.h bdf.h |
| 60 |
bdfpsf.o: bdfpsf.c bdfP.h bdf.h |
| 61 |
hbf.o: hbf.c hbf.h |
| 62 |
labcon.o: labcon.c labcon.h |
| 63 |
grayswatch.o: grayswatch.c grayswatch.h |
| 64 |
glyphedit.o: glyphedit.c glyphedit.h bdfP.h bdf.h |
| 65 |
glyphtest.o: glyphtest.c glyphtest.h bdfP.h bdf.h |
| 66 |
fontgrid.o: fontgrid.c fontgrid.h bdfP.h bdf.h |
| 67 |
gectrl.o: gectrl.c gectrl.h bdfP.h bdf.h gectrlbmaps.h |
| 68 |
gbdfed.o: gbdfed.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h labcon.h |
| 69 |
guiedit.o: guiedit.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h \ |
| 70 |
labcon.h |
| 71 |
guigedit.o: guigedit.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h \ |
| 72 |
glyphedit.h labcon.h gectrl.h |
| 73 |
guifile.o: guifile.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h \ |
| 74 |
labcon.h |
| 75 |
guihelp.o: guihelp.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h htext.h |
| 76 |
guiops.o: guiops.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h |
| 77 |
guipref.o: guipref.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h |
| 78 |
guiutil.o: guiutil.c gbdfed.h bdf.h fontgrid.h bdfP.h glyphtest.h |