Last change
on this file since 201 was
201,
checked in by nanardon, 16 years ago
|
|
-
Property svn:eol-style set to
native
|
File size:
1.6 KB
|
Line | |
---|
1 | # $Id: Makefile 187 2008-09-05 02:43:56Z nanardon $ |
---|
2 | |
---|
3 | .SUFFIXES: .dvi .pdf .eps .fig .png .jpg |
---|
4 | |
---|
5 | PWD=$(shell pwd) |
---|
6 | |
---|
7 | # unix |
---|
8 | |
---|
9 | unix_TEX = \ |
---|
10 | unix.tex |
---|
11 | |
---|
12 | unix_INCLUDES = \ |
---|
13 | |
---|
14 | unix_EXAMPLES = \ |
---|
15 | deleteopen.pl \ |
---|
16 | nosegfault.c \ |
---|
17 | malloc.c \ |
---|
18 | fork.c \ |
---|
19 | |
---|
20 | unix_IMAGESJPG= \ |
---|
21 | |
---|
22 | unix_IMAGESPNG= \ |
---|
23 | asus_mb.png \ |
---|
24 | process.png \ |
---|
25 | fork.png \ |
---|
26 | compil.png \ |
---|
27 | x.png \ |
---|
28 | x-mplayer-capcv.png \ |
---|
29 | x-mplayer-capcv-twm.png \ |
---|
30 | x-resume.png \ |
---|
31 | |
---|
32 | unix_FIGURES= \ |
---|
33 | |
---|
34 | unix_IMAGES= $(unix_IMAGESJPG) $(unix_IMAGESPNG) |
---|
35 | |
---|
36 | unix_PDFDEPS = Makefile \ |
---|
37 | $(unix_INCLUDES) \ |
---|
38 | $(unix_EXAMPLES) \ |
---|
39 | $(unix_FIGURES) \ |
---|
40 | $(unix_IMAGES) \ |
---|
41 | |
---|
42 | unix_DVIDEPS = Makefile \ |
---|
43 | $(unix_INCLUDES) \ |
---|
44 | $(unix_EXAMPLES) \ |
---|
45 | $(unix_FIGURES) \ |
---|
46 | $(unix_IMAGES) \ |
---|
47 | $(unix_PNGEPS) \ |
---|
48 | |
---|
49 | |
---|
50 | unix_DVI = $(unix_TEX:.tex=.dvi) |
---|
51 | unix_PDF = $(unix_TEX:.tex=.pdf) |
---|
52 | unix_EPS = $(unix_FIGEPS) $(unix_PNGEPS) $(unix_JPGEPS) |
---|
53 | unix_FIGEPS = $(unix_FIGURES:.fig=.eps) |
---|
54 | unix_PNGEPS = $(unix_IMAGESPNG:.png=.eps) |
---|
55 | unix_JPGEPS = $(unix_IMAGESJPG:.jpg=.eps) |
---|
56 | |
---|
57 | # Everything |
---|
58 | ALL_PDF = $(unix_PDF) |
---|
59 | ALL_DVI = $(unix_DVI) |
---|
60 | |
---|
61 | all: pdf |
---|
62 | |
---|
63 | pdf: $(ALL_PDF) |
---|
64 | |
---|
65 | dvi: $(ALL_DVI) |
---|
66 | |
---|
67 | unix.pdf: $(unix_TEX) $(unix_PDFDEPS) |
---|
68 | pdflatex -halt-on-error $< && pdflatex -halt-on-error $< |
---|
69 | |
---|
70 | unix.dvi: $(unix_TEX) $(unix_DVIDEPS) |
---|
71 | latex -halt-on-error $< && latex -halt-on-error $< |
---|
72 | |
---|
73 | %.eps: %.fig |
---|
74 | fig2dev -L eps $< $@ |
---|
75 | |
---|
76 | %.png: %.dia |
---|
77 | dia -e $@ $< |
---|
78 | |
---|
79 | .png.eps: |
---|
80 | convert $< $@ |
---|
81 | |
---|
82 | .jpg.eps: |
---|
83 | convert $< $@ |
---|
84 | |
---|
85 | libsmall.so: libsmall.o |
---|
86 | gcc -shared -o $@ $< |
---|
87 | |
---|
88 | libsmall.a: libsmall.o |
---|
89 | ar rcs $@ $< |
---|
90 | |
---|
91 | small.dyn: small.o libsmall.so |
---|
92 | gcc -Wl,-rpath=$(PWD) -I. -L. -lsmall -o $@ small.o |
---|
93 | |
---|
94 | small.static: small.o libsmall.a |
---|
95 | gcc -I. -o $@ small.o libsmall.a |
---|
96 | |
---|
97 | clean: |
---|
98 | rm -f $(FIGEPS) |
---|
99 | rm -f $(ALL_DVI) |
---|
100 | rm -f $(ALL_PDF) |
---|
101 | |
---|
102 | .PHONY: pdf dvi clean all |
---|
Note: See
TracBrowser
for help on using the repository browser.