/[pg_recode]/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 /Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Mon Mar 20 07:14:01 2000 UTC (19 years, 1 month ago) by dpavlin
Branch: DbP, MAIN
CVS Tags: beta, HEAD
Changes since 1.1: +0 -0 lines
početni import

1 dpavlin 1.1 #-------------------------------------------------------------------------
2     #
3     # Makefile--
4     # Makefile for recode
5     #
6     #-------------------------------------------------------------------------
7    
8     DB=informatika
9    
10     CFLAGS += -fPIC -I/usr/include/pgsql
11     DLSUFFIX = .so
12    
13     MODNAME = recode
14    
15     MODULE = $(MODNAME)$(DLSUFFIX)
16    
17     DIST = pg_$(MODNAME)
18    
19     .SUFFIXES: $(DLSUFFIX)
20    
21     all: $(MODULE) example test
22    
23     %$(DLSUFFIX): %.c
24     $(CC) $(CFLAGS) -shared -o $@ $<
25    
26     depend dep:
27     $(CC) -MM $(INCLUDE_OPT) *.c >depend
28    
29     clean:
30     rm -f $(MODULE) $(MODNAME).sql *~
31    
32     dist: clean
33     cd .. && tar cfvpz $(DIST).tar.gz $(DIST)
34    
35     example:
36     echo "drop function to1250(text); drop function toczs(text); \
37     create function to1250(text) returns text \
38     as '`pwd`/recode.so' language 'c'; \
39     create function toczs(text) returns text \
40     as '`pwd`/recode.so' language 'c'; \
41     create function to88592(text) returns text \
42     as '`pwd`/recode.so' language 'c'; \
43     create function initcap2(text) returns text \
44     as '`pwd`/recode.so' language 'c'; \
45     " > $(MODNAME).sql
46     test:
47     psql template1 < test.sql
48    
49     ifeq (depend,$(wildcard depend))
50     include depend
51     endif

  ViewVC Help
Powered by ViewVC 1.1.26