File: rules.make

package info (click to toggle)
fidogate 4.4.7-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,784 kB
  • ctags: 2,957
  • sloc: ansic: 24,413; perl: 4,932; makefile: 885; sh: 824; yacc: 662; tcl: 415
file content (32 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- Makefile -*-
#
# $Id: rules.make,v 4.6 1998/11/15 10:59:01 mj Exp $
#
# Common rules for all FIDOGATE Makefiles
#

.SUFFIXES: .pl .sh .mc .cf

%.o:		%.c
	$(CC) $(CFLAGS) $(LOCAL_CFLAGS) -c $<

%:		%.o
	$(CC) $(LFLAGS) $(LOCAL_LFLAGS) -o $* $*.o $(LIBS)

%:		%.pl
	$(PERL) $(TOPDIR)/subst.pl -t$(TOPDIR) -p $< >$*
	chmod +x $*

%.cgi:		%.cgi.pl
	$(PERL) $(TOPDIR)/subst.pl -t$(TOPDIR) -p -o '-Tw' $< >$*.cgi
	chmod +x $*.cgi

%:		%.sh
	$(PERL) $(TOPDIR)/subst.pl -t$(TOPDIR) $< >$*
	chmod +x $*

%.cf:		%.mc
	$(M4) $(M4OPTIONS) $< >$*.cf

#$(LIB)(%.o):	%.o
#	$(AR) r $(LIB) $<