First Commit of my working state
[simh.git] / Ibm1130 / makefile
1 # (This makefile is for operating systems other than Windows,
2 # or compilers other than Microsoft's. For MS builds, use the
3 # .mak files found in this directory and the utils directory).
4 #
5 # If you are building the emulator and utilities as part of
6 # the SIMH package, please:
7 #
8 # Be sure that you there are NO copies of scp.c, scp_tty.c,
9 # sim_sock.c, sim_tmxr.c, sim_rev.h, sim_defs.h, sim_sock.h and
10 # sim_tmxr.h in the ibm1130 subdirectory. Delete them if there
11 # are.
12 #
13 # Do not use this makefile with "make all" or "make ibm1130".
14 # Use the SIMH build files instead.
15 #
16 # If and when you download updates for this simulator from
17 # www.ibm1130.org, get ibm1130code.zip and ibm1130software.zip
18 # separately.
19 #
20 # If you have downloaded the emulator independently of SIMH (e.g, from
21 # www.ibm1130.org), please:
22 #
23 # Be sure that you DO have copies of scp.c, scp_tty.c, sim_sock.c,
24 # sim_tmxr.c, sim_rev.h, sim_defs.h, sim_sock.h and sim_tmxr.h
25 # in this folder.
26 #
27 # Use this file to make the emulator.
28 #
29 # If and when you download updates for this simulator from
30 # www.ibm1130.org, get ibm1130.zip. When you expand it,
31 # also expand ibm1130sofware.zip, which is inside.
32 #
33 # In either case, if you want to build DMS or work with assembly
34 # language programs outside of DMS, you'll want to make the utilities
35 # by cd'ing to the utils directory and running make there.
36
37 # CC Command
38 #
39 # Note: -O2 is sometimes broken in GCC when setjump/longjump is being
40 # used. Try -O2 only with released simulators.
41 #
42 CC = gcc -O0 -lm -I .
43 #CC = gcc -O2 -g -lm -I .
44
45
46 #
47 # Common Libraries
48 #
49 BIN =
50 SIM = scp.c sim_console.c sim_fio.c sim_sock.c sim_timer.c sim_tmxr.c scp_tty.c
51 SIM_INC = scp.h sim_console.h sim_defs.h sim_fio.h sim_rev.h sim_sock.h sim_timer.h sim_tmxr.h
52
53 #
54 # Emulator source files and compile time options
55 #
56
57 ibm1130D = ./
58 ibm1130 = ${ibm1130D}ibm1130_sys.c ${ibm1130D}ibm1130_cpu.c \
59 ${ibm1130D}ibm1130_cr.c ${ibm1130D}ibm1130_disk.c \
60 ${ibm1130D}ibm1130_stddev.c ${ibm1130D}ibm1130_gdu.c \
61 ${ibm1130D}ibm1130_gui.c ${ibm1130D}ibm1130_prt.c \
62 ${ibm1130D}ibm1130_ptrp.c ${ibm1130D}ibm1130_fmt.c
63
64 ibm1130_INC = ibm1130res.h ibm1130_conin.h ibm1130_conout.h \
65 ibm1130_defs.h ibm1130_prtwheel.h ibm1130_fmt.h \
66 dmsr2v12phases.h dmsr2v12slet.h
67
68 #
69 # Build the emulator
70 #
71
72 ${BIN}ibm1130 : ${ibm1130} ${SIM} ${ibm1130_INC} ${SIM_INC}
73 ${CC} ${ibm1130} ${SIM} -o $@
74