Split out hw-alloc code. Add constructor and destructor for hw-alloc.
[deliverable/binutils-gdb.git] / sim / common / Make-common.in
index 23763e193ce19c074a33fd1c516ba2f77b44b34b..dcc8c7a7383d3a7514f064bc070638329be67e90 100644 (file)
@@ -142,6 +142,7 @@ SIM_EXTRA_CLEAN =
 # Those files are specified in LIB_OBJS below.
 
 SIM_COMMON_HW_OBJS = \
+       hw-alloc.o \
        hw-device.o \
        hw-events.o \
        hw-ports.o \
@@ -314,6 +315,7 @@ sim-options_h = $(srccom)/sim-options.h
 sim-break_h = $(srccom)/sim-break.h
 sim-signal_h = $(srccom)/sim-signal.h
 
+hw-alloc_h = $(srccom)/hw-alloc.h
 hw-base_h = $(srccom)/hw-base.h
 hw-device_h = $(srccom)/hw-device.h
 hw-events_h = $(srccom)/hw-events.h
@@ -324,6 +326,7 @@ hw-properties_h = $(srccom)/hw-properties.h
 hw-tree_h = $(srccom)/hw-tree.h
 
 hw_base_headers = \
+       $(hw-alloc_h) \
        $(hw-base_h) \
        $(hw-device_h) \
        $(hw-events_h) \
@@ -472,6 +475,10 @@ hw-config.h: Makefile.in $(srccom)/Make-common.in config.status Makefile
        echo "};" >> tmp-hw.h
        mv tmp-hw.h hw-config.h
 
+hw-alloc.o: $(srccom)/hw-alloc.c $(sim_main_headers) \
+         $(hw-alloc_h)
+       $(CC) -c $(srccom)/hw-alloc.c $(ALL_CFLAGS)
+
 hw-base.o: $(srccom)/hw-base.c $(sim_main_headers) \
          $(hw_base_headers) hw-config.h
        $(CC) -c $(srccom)/hw-base.c $(ALL_CFLAGS)
This page took 0.023278 seconds and 4 git commands to generate.