~ubuntu-branches/ubuntu/hoary/cdrtools/hoary

« back to all changes in this revision

Viewing changes to RULES/r-smake.obj

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2002-04-09 10:03:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020409100306-t4hagiv7gm0fhggv
Tags: upstream-1.10
ImportĀ upstreamĀ versionĀ 1.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ident @(#)r-smake.obj  1.4 99/11/01 
 
2
###########################################################################
 
3
# Written 1996 by J. Schilling
 
4
###########################################################################
 
5
#
 
6
# Object building rules for smake
 
7
#
 
8
###########################################################################
 
9
# This program is free software; you can redistribute it and/or modify
 
10
# it under the terms of the GNU General Public License as published by
 
11
# the Free Software Foundation; either version 2, or (at your option)
 
12
# any later version.
 
13
#
 
14
# This program is distributed in the hope that it will be useful,
 
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
# GNU General Public License for more details.
 
18
#
 
19
# You should have received a copy of the GNU General Public License
 
20
# along with this program; see the file COPYING.  If not, write to
 
21
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
22
###########################################################################
 
23
# This defines a rule that compiles source files from current directory and
 
24
# puts the resultant objects directly into $(ARCHDIR),
 
25
# to allow concurrent compilation on different platforms.
 
26
# Object file names are constructed from $(CFILES).
 
27
###########################################################################
 
28
ARCHDIRX=
 
29
OFILES=                 $(CFILES:%.c=%.o)
 
30
POFILES=                $(CFILES:%.c=$(ARCHDIR)/%.o)
 
31
.OBJDIR:                $(ARCHDIR)
 
32
###########################################################################
 
33
 
 
34
.o: .c
 
35
#                       $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
36
                        $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $O/$@ $<
 
37
%.o: %.c
 
38
                        $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $O/$@ $<
 
39
 
 
40
#$(ARCHDIR)/%.o:                %.c
 
41
#                       $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(*F).c
 
42
 
 
43
###########################################################################