Makefile 574 Bytes
Newer Older
1 2 3 4

# All files are under A (short for ARCH): I'm lazy
A := arch-$(ARCH)

5
CFLAGS += -Itools -Iproto-standard
6 7 8 9

OBJ-y += $A/sim-startup.o \
	$A/main-loop.o \
	$A/sim-io.o \
10
	$A/sim-conf.o \
11 12
	lib/cmdline.o \
	lib/conf.o \
13
	lib/dump-funcs.o \
14
	lib/libc-functions.o \
15 16 17 18 19 20 21 22 23 24 25 26
	lib/div64.o

# Support only "sim" time operations
TIME := sim
include time-$(TIME)/Makefile

all: $(TARGET)

# to build the target, we need -lstd again, in case we call functions that
# were not selected yet (e.g., pp_open_globals() ).
$(TARGET): $(TARGET).o
	$(CC) -Wl,-Map,$(TARGET).map2 -o $@ $(TARGET).o -lrt