aboutsummaryrefslogtreecommitdiffstats
path: root/rdoff/Makefile.in
blob: ed66fc4fd552382e7125509555e38c05c7257211 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# Auto-configuring Makefile for RDOFF object file utils; part of the
# Netwide Assembler
#
# The Netwide Assembler is copyright (C) 1996 Simon Tatham and
# Julian Hall. All rights reserved. The software is
# redistributable under the licence given in the file "Licence"
# distributed in the NASM archive.

top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@

CC = @CC@
CFLAGS = @CFLAGS@ @GCCFLAGS@ -I$(top_srcdir)

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
LN_S = @LN_S@

LDRDFLIBS = rdoff.o nasmlib.o symtab.o collectn.o rdlib.o
RDXLIBS = rdoff.o rdfload.o symtab.o collectn.o

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

all: rdfdump ldrdf rdx rdflib rdf2bin rdf2com

rdfdump: rdfdump.o
	$(CC) -o rdfdump rdfdump.o

ldrdf: ldrdf.o $(LDRDFLIBS)
	$(CC) -o ldrdf ldrdf.o $(LDRDFLIBS)
rdx: rdx.o $(RDXLIBS)
	$(CC) -o rdx rdx.o $(RDXLIBS)
rdflib: rdflib.o
	$(CC) -o rdflib rdflib.o
rdf2bin: rdf2bin.o $(RDXLIBS) nasmlib.o
	$(CC) -o rdf2bin rdf2bin.o $(RDXLIBS) nasmlib.o
rdf2com:
	$(LN_S) rdf2bin rdf2com

rdf2bin.o: rdf2bin.c
rdfdump.o: rdfdump.c
rdoff.o: rdoff.c rdoff.h
ldrdf.o: ldrdf.c rdoff.h $(top_srcdir)/nasmlib.h symtab.h collectn.h rdlib.h
symtab.o: symtab.c symtab.h
collectn.o: collectn.c collectn.h
rdx.o: rdx.c rdoff.h rdfload.h symtab.h
rdfload.o: rdfload.c rdfload.h rdoff.h collectn.h symtab.h
rdlib.o: rdlib.c rdlib.h
rdflib.o: rdflib.c

nasmlib.o: $(top_srcdir)/nasmlib.c
	$(CC) -c $(CFLAGS) $(top_srcdir)/nasmlib.c

clean:
	rm -f *.o rdfdump ldrdf rdx rdflib rdf2bin rdf2com

distclean: clean
	rm -f Makefile

cleaner: clean

spotless: distclean

install: rdfdump ldrdf rdx rdflib rdf2bin rdf2com
	$(INSTALL_PROGRAM) rdfdump $(bindir)/rdfdump
	$(INSTALL_PROGRAM) ldrdf $(bindir)/ldrdf
	$(INSTALL_PROGRAM) rdx $(bindir)/rdx
	$(INSTALL_PROGRAM) rdflib $(bindir)/rdflib
	$(INSTALL_PROGRAM) rdf2bin $(bindir)/rdf2bin
	cd $(bindir); $(LN_S) rdf2bin rdf2com