NASM 0.91
[nasm/avx512.git] / rdoff / Makefile
blob2e55dde165a5fd0939b373b15a39fb44236a8c72
1 # Makefile for RDOFF object file utils; part of the Netwide Assembler
3 # The Netwide Assembler is copyright (C) 1996 Simon Tatham and
4 # Julian Hall. All rights reserved. The software is
5 # redistributable under the licence given in the file "Licence"
6 # distributed in the NASM archive.
8 # This Makefile is designed for use under Unix (probably fairly
9 # portably).
11 CC = gcc
12 CCFLAGS = -c -O -g -Wall -ansi -pedantic -I..
13 LINK = gcc
14 LINKFLAGS = -o
15 DLINKFLAGS = -o
16 LIBRARIES =
17 STRIP = strip
18 LDRDFLIBS = rdoff.o ../nasmlib.o symtab.o collectn.o
19 RDXLIBS = rdoff.o rdfload.o symtab.o collectn.o
21 .c.o:
22 $(CC) $(CCFLAGS) $*.c
24 all : rdfdump ldrdf rdx
26 rdfdump : rdfdump.o
27 $(LINK) $(LINKFLAGS) rdfdump rdfdump.o
28 ldrdf : ldrdf.o $(LDRDFLIBS)
29 $(LINK) $(LINKFLAGS) ldrdf ldrdf.o $(LDRDFLIBS)
30 rdx : rdx.o $(RDXLIBS)
31 $(LINK) $(LINKFLAGS) rdx rdx.o $(RDXLIBS)
33 rdfdump.o : rdfdump.c
34 rdoff.o : rdoff.c rdoff.h
35 ldrdf.o : ldrdf.c rdoff.h ../nasmlib.h symtab.h collectn.h
36 symtab.o : symtab.c symtab.h
37 collectn.o : collectn.c collectn.h
38 rdx.o : rdx.c rdoff.h rdfload.h symtab.h
39 rdfload.o : rdfload.c rdfload.h rdoff.h collectn.h symtab.h
41 clean :
42 rm -f *.o *~ rdfdump ldrdf rdx
43 make -C test clean