-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathforw.make
More file actions
35 lines (28 loc) · 962 Bytes
/
forw.make
File metadata and controls
35 lines (28 loc) · 962 Bytes
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
# makefile for compiling ForwardCom binary tools 'forw' with Gnu or Clang C++ compiler
# Date created: 2018-02-20
# Last modified: 2021-08-05
# version: 1.11
# license: GPL
# author: Agner Fog
# compiler name:
comp = g++
#comp = clang++
# compiler flags:
compflags = -O3 -m64
# object files:
objfiles = stdafx.o main.o error.o containers.o cmdline.o elf.o \
assem1.o assem2.o assem3.o assem4.o assem5.o assem6.o disasm1.o disasm2.o \
library.o linker1.o linker2.o format_tables.o \
emulator1.o emulator2.o emulator3.o emulator4.o emulator5.o emulator6.o
# header files:
headerfiles=stdafx.h maindef.h error.h elf.h elf_forwardcom.h cmdline.h \
containers.h converters.h assem.h disassem.h library.h linker.h emulator.h system_functions.h
# make forw:
forw : $(objfiles)
$(comp) $(compflags) -o $@ $(objfiles)
# rule for making object file:
%.o: %.cpp $(headerfiles)
$(comp) $(compflags) -c -o $@ $<
# rule for clean up:
clean :
rm $(objfiles)