/[hyperestraier]/upstream/0.5.1/example/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /upstream/0.5.1/example/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Fri Jul 29 21:56:53 2005 UTC (18 years, 10 months ago) by dpavlin
File size: 1415 byte(s)
import of HyperEstraier 0.5.1

1 # Makefile for sample programs Hyper Estraier
2
3
4
5 #================================================================
6 # Setting Variables
7 #================================================================
8
9
10 # Generic settings
11 SHELL = /bin/sh
12
13 # Targets
14 MYBINS = example001 example002
15
16 # Building binaries
17 CC = gcc
18 CPPFLAGS = -I. -I.. -I$(HOME)/include -I/usr/local/include
19 CFLAGS = -Wall -ansi -pedantic -g -O2
20 LDFLAGS = -L. -L.. -L$(HOME)/lib -L/usr/local/lib
21 LIBS = -lestraier -lqdbm -lz -liconv -lm -lc
22 LDENV = LD_RUN_PATH=/lib:/usr/lib:$(HOME)/lib:/usr/local/lib:.:..
23
24
25
26 #================================================================
27 # Suffix rules
28 #================================================================
29
30
31 .SUFFIXES :
32 .SUFFIXES : .c .o
33
34 .c.o :
35 $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
36
37
38
39 #================================================================
40 # Actions
41 #================================================================
42
43
44 all : $(MYBINS)
45
46
47 clean :
48 rm -rf $(MYBINS) *.exe *.o a.out check.out gmon.out leak.log casket *~
49
50
51 .PHONY : all clean
52
53
54
55 #================================================================
56 # Building binaries
57 #================================================================
58
59
60 example001 : example001.o
61 $(LDENV) $(CC) $(CFLAGS) -o $@ example001.o $(LDFLAGS) $(LIBS)
62
63
64 example002 : example002.o
65 $(LDENV) $(CC) $(CFLAGS) -o $@ example002.o $(LDFLAGS) $(LIBS)
66
67
68
69 # END OF FILE

  ViewVC Help
Powered by ViewVC 1.1.26