summaryrefslogtreecommitdiff
path: root/bin86-0.3/ld/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bin86-0.3/ld/Makefile')
-rw-r--r--bin86-0.3/ld/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/bin86-0.3/ld/Makefile b/bin86-0.3/ld/Makefile
new file mode 100644
index 0000000..a7da6d7
--- /dev/null
+++ b/bin86-0.3/ld/Makefile
@@ -0,0 +1,29 @@
+CC =gcc
+CFLAGS =-O1 -fomit-frame-pointer
+INC_CFLAGS =-DBSD_A_OUT -I../a.out.h -D__linux__
+LDFLAGS =-s
+
+OBJS =dumps.o io.o ld.o readobj.o table.o typeconv.o \
+ writebin.o
+
+.SUFFIXES:
+.SUFFIXES: .c .o
+
+.c.o:
+ $(CC) $(CFLAGS) $(INC_CFLAGS) -c $<
+
+all: ld86
+
+ld86: $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+
+clean:
+ $(RM) $(OBJS) ld86 core
+
+dumps.o: dumps.c const.h config.h obj.h type.h globvar.h
+io.o: io.c const.h config.h type.h globvar.h
+ld.o: ld.c const.h config.h type.h byteord.h globvar.h
+readobj.o: readobj.c const.h config.h byteord.h obj.h type.h globvar.h
+table.o: table.c const.h config.h align.h obj.h type.h globvar.h
+typeconv.o: typeconv.c const.h config.h type.h globvar.h
+writebin.o: writebin.c const.h config.h obj.h type.h globvar.h