/[hyperestraier]/upstream/0.5.2/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.2/example/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations)
Wed Aug 3 15:21:15 2005 UTC (18 years, 9 months ago) by dpavlin
File size: 1599 byte(s)
import upstream version 0.5.2

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

  ViewVC Help
Powered by ViewVC 1.1.26