[go: up one dir, main page]

Menu

[72b583]: / tests / c / Makefile.unix  Maximize  Restore  History

Download this file

166 lines (130 with data), 4.0 kB

  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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
VERSION=0.0.11
CC=gcc
INCLUDES=-I ../../pslib/src
CFLAGS=-g -O0 -Wall -DMEMORY_DEBUGGING
PSLIB=../../pslib/src/.libs/libps.a
LIBS=-lm -lpng -ljpeg -lgif -ltiff
TARGETS=txt2ps einstein draw psclock hyperlinks hyphenate fontsample glyphlist ligatures ligexperts overprint spotcolor mmk memory pagehook shading image imagereuse showbox fontcreate logos schematic poster polish cmyk
PSDOCS=einstein.ps psclock.ps draw.ps hyperlinks.ps fontsample.ps glyphlist.ps ligatures.ps ligexperts.ps overprint.ps spotcolor.ps mmk.ps pagehook.ps shading.ps image.ps imagereuse.ps showbox.ps fontcreate.ps logos.ps schematic.ps poster.ps polish.ps cmyk.ps
DISTNAME=pslib-examples-$(VERSION)
all: $(TARGETS)
rebuild: clean all
help:
@echo "Available targets:"
@echo " all - Build all examples"
@echo " run - Run all examples and create PostScript files"
@echo " clean - Remove object files and example programs"
@echo " distclean - Same as 'clean', also remove PostScript files"
@echo " dist - Create new distribution"
@echo " rebuild - force rebuild of all example programs"
@echo " help - this output"
.c.o:
@echo "Compiling $<"
@$(CC) $(CFLAGS) $(INCLUDES) -c $<
$(PSDOCS):
@echo "Running ./$(patsubst %.ps,%,$@)"
@./$(patsubst %.ps,%,$@)
draw: draw.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
txt2ps: txt2ps.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
einstein: einstein.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
psclock: psclock.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
hyperlinks: hyperlinks.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
hyphenate: hyphenate.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
fontsample: fontsample.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
glyphlist: glyphlist.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
ligatures: ligatures.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
ligexperts: ligexperts.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
overprint: overprint.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
spotcolor: spotcolor.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
mmk: mmk.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
memory: memory.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
pagehook: pagehook.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
shading: shading.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
image: image.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
imagereuse: imagereuse.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
showbox: showbox.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
fontcreate: fontcreate.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
logos: logos.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
schematic: schematic.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
poster: poster.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
polish: polish.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
cmyk: cmyk.o
@echo "Building $@"
@$(CC) $< $(PSLIB) ${LIBS} -o $@
run: $(TARGETS)
@for i in $(TARGETS); do \
echo "Running $$i ..." ;\
eval ./$$i ;\
done
dist:
rm -rf $(DISTNAME)
mkdir $(DISTNAME)
cp README $(DISTNAME)
cp ChangeLog $(DISTNAME)
cp $(TARGETS:=.c) $(DISTNAME)
cp Makefile.unix $(DISTNAME)
cp CMakeLists.txt $(DISTNAME)
cp AlteSchwabacher.* $(DISTNAME)
cp cork.enc $(DISTNAME)
cp Helvetica.afm Helvetica.pro Courier.afm $(DISTNAME)
cp hyph_de.dic hyph_en.dic $(DISTNAME)
cp picture.eps debian.png debian.gif debian.tiff interlaced.gif $(DISTNAME)
cp indexed-alpha.png indexed.png rgb-alpha.png rgb.png $(DISTNAME)
cp exiftest.jpg debian.bmp gnu-head.jpg cne-cmyk.jpg debian-transparent.gif $(DISTNAME)
cp einstein.txt $(DISTNAME)
cp dice.afm dice.pfb $(DISTNAME)
tar czvf $(DISTNAME).tar.gz $(DISTNAME)
rm -rf $(DISTNAME)
clean:
@rm -f *.o $(TARGETS)
distclean: clean
@rm -f $(PSDOCS)
.PHONY : clean distclean dist rebuild