/[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

Annotation of /upstream/0.5.2/example/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


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

1 dpavlin 9 # Makefile for sample programs of Hyper Estraier
2 dpavlin 2
3    
4    
5     #================================================================
6     # Setting Variables
7     #================================================================
8    
9    
10     # Generic settings
11     SHELL = /bin/sh
12    
13     # Targets
14 dpavlin 9 MYBINS = coreexample001 coreexample002 nodeexample001 nodeexample002
15 dpavlin 2
16     # Building binaries
17     CC = gcc
18 dpavlin 9 CFLAGS = -I. -I.. `../estconfig --cflags`
19     LDFLAGS = `../estconfig --ldflags`
20     LIBS = -L. -L.. `../estconfig --libs`
21 dpavlin 2 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 dpavlin 9 $(CC) -c $(CFLAGS) $<
35 dpavlin 2
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 dpavlin 9 coreexample001 : coreexample001.o
60     $(LDENV) $(CC) $(CFLAGS) -o $@ coreexample001.o $(LDFLAGS) $(LIBS)
61 dpavlin 2
62    
63 dpavlin 9 coreexample002 : coreexample002.o
64     $(LDENV) $(CC) $(CFLAGS) -o $@ coreexample002.o $(LDFLAGS) $(LIBS)
65 dpavlin 2
66    
67 dpavlin 9 nodeexample001 : nodeexample001.o
68     $(LDENV) $(CC) $(CFLAGS) -o $@ nodeexample001.o $(LDFLAGS) $(LIBS)
69 dpavlin 2
70 dpavlin 9
71     nodeexample002 : nodeexample002.o
72     $(LDENV) $(CC) $(CFLAGS) -o $@ nodeexample002.o $(LDFLAGS) $(LIBS)
73    
74    
75    
76 dpavlin 2 # END OF FILE

  ViewVC Help
Powered by ViewVC 1.1.26