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