Skip to content

Commit

Permalink
Some Makefile fixups.
Browse files Browse the repository at this point in the history
  • Loading branch information
phabrics committed Mar 23, 2024
1 parent 4bb6016 commit 8b2bdcb
Show file tree
Hide file tree
Showing 29 changed files with 42 additions and 40 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ACLOCAL_AMFLAGS = -I m4

SUBDIRS = . $(subdirs) tme libltdl libtme generic ic machine host bus serial scsi tmesh tools

EXTRA_DIST = modules edist
EXTRA_DIST = modules.mk edist
pkgdata_DATA = tmeconfig.h tmememory.h

# target to hook into the distribution:
Expand Down
2 changes: 1 addition & 1 deletion bus/multibus/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ tme_bus_multibus_la_SOURCES = 3c400.c \
sun-sc.c
tme_bus_multibus_la_LIBADD = $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion bus/sbus/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ tme_bus_sbus_la_SOURCES = \
sun-fbs4.c
tme_bus_sbus_la_LIBADD = $(top_builddir)/machine/sun/libtme-machine-sun.la $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
4 changes: 2 additions & 2 deletions generic/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ noinst_SCRIPTS = float-auto.sh \

BUILT_SOURCES = $(noinst_SCRIPTS:.sh=.c)

CLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES)
MAINTAINERCLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES)

EXTRA_DIST = $(CLEANFILES) $(noinst_SCRIPTS:.sh=.m4) fb-xlat-auto.pl
EXTRA_DIST = $(MAINTAINERCLEANFILES) $(noinst_SCRIPTS:.sh=.m4) fb-xlat-auto.pl

# default rule for regenerating the portable shell scripts from m4 descriptions
$(addprefix $(srcdir)/,$(noinst_SCRIPTS)): %.sh: %.m4
Expand Down
2 changes: 1 addition & 1 deletion generic/bus/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ pkglib_LTLIBRARIES = tme_generic.la
tme_generic_la_SOURCES = bus-el.c
tme_generic_la_LIBADD = $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion host/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ tme_host_posix_la_SOURCES = posix-memory.c \

tme_host_posix_la_LIBADD = $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk

SUBDIRS = display eth
2 changes: 1 addition & 1 deletion host/display/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ keymap.h: keymap-def.h
cp $< $@
endif

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk

DIST_SUBDIRS=gtk rfb sdl
2 changes: 1 addition & 1 deletion host/display/gtk/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pkglib_LTLIBRARIES = tme_host_gtk.la
tme_host_gtk_la_SOURCES = gtk-mouse.c gtk-keyboard.c gtk-display.c gtk-display.h
tme_host_gtk_la_LIBADD = ../libtme-display.la $(GTK_LIBS) $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion host/display/rfb/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ tme_host_rfb_la_CPPFLAGS += $(SDL_CFLAGS)
tme_host_rfb_la_LIBADD += $(SDL_LIBS)
endif

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion host/display/sdl/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pkglib_LTLIBRARIES = tme_host_sdl.la
tme_host_sdl_la_SOURCES = sdl-display.c
tme_host_sdl_la_LIBADD = ../libtme-display.la $(SDL_LIBS) $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion host/eth/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ libtme_eth_la_SOURCES = eth-impl.c eth-if.h
libtme_eth_la_LDFLAGS = -version-info 0:0:0
libtme_eth_la_LIBADD = $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk

DIST_SUBDIRS=bsd openvpn tun
2 changes: 1 addition & 1 deletion host/eth/bsd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pkglib_LTLIBRARIES = tme_host_bsd.la
tme_host_bsd_la_SOURCES = bsd-bpf.c
tme_host_bsd_la_LIBADD = ../libtme-eth.la $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion host/eth/openvpn/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ if WIN32
tme_host_openvpn_la_LIBADD += -lgdi32 -lws2_32 -lwininet -lcrypt32 -liphlpapi -lwinmm
endif

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion host/eth/tun/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pkglib_LTLIBRARIES = tme_host_tun.la
tme_host_tun_la_SOURCES = tun-tap.c
tme_host_tun_la_LIBADD = ../libtme-eth.la $(NATLIBS) $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion ic/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ tme_ic_am7990_la_LIBADD = $(TME_LIBS)
tme_ic_lsi64854_la_SOURCES = lsi64854.c
tme_ic_lsi64854_la_LIBADD = $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
6 changes: 3 additions & 3 deletions ic/ieee754/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ AM_CFLAGS = @CFLAGS_NO_STRICT_ALIASING@

noinst_SCRIPTS = ieee754-misc-auto.sh ieee754-ops-auto.sh ieee754-precision.sh
BUILT_SOURCES = ieee754-auto.h ieee754-ops-auto.h ieee754-misc-auto.c
CLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES) ieee754-ops-auto.c
MAINTAINERCLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES) ieee754-ops-auto.c

EXTRA_DIST = $(CLEANFILES) $(noinst_SCRIPTS:.sh=.m4) softfloat-tme.h
EXTRA_DIST = $(MAINTAINERCLEANFILES) $(noinst_SCRIPTS:.sh=.m4) softfloat-tme.h

# default rule for regenerating the portable shell scripts from m4 descriptions
$(addprefix $(srcdir)/,$(noinst_SCRIPTS)): %.sh: %.m4
Expand All @@ -41,4 +41,4 @@ $(srcdir)/ieee754-ops-auto.h: ieee754-ops-auto.sh ieee754-precision.sh
$(srcdir)/ieee754-ops-auto.c: ieee754-ops-auto.sh ieee754-precision.sh
$(SHELL) $< > $@

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
8 changes: 4 additions & 4 deletions ic/m68k/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ noinst_SCRIPTS = m68k-misc-auto.sh \
m68k-bus-auto.sh \
m6888x-auto.sh

BUILT_SOURCES = $(noinst_SCRIPTS) m68k-auto.h m68k-opmap.c m68k-insns-auto.c m68k-bus-auto.c m6888x-auto.c
CLEANFILES = $(BUILT_SOURCES)
BUILT_SOURCES = m68k-auto.h m68k-opmap.c m68k-insns-auto.c m68k-bus-auto.c m6888x-auto.c
MAINTAINERCLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES)

EXTRA_DIST = m68k-impl.h \
$(BUILT_SOURCES) \
$(MAINTAINERCLEANFILES) \
$(noinst_SCRIPTS:.sh=.m4) \
m68k-execute.c \
m68k-iset-expand.pl \
Expand Down Expand Up @@ -66,4 +66,4 @@ $(pkglib_LTLIBRARIES): ../ieee754/libtme-ieee754.la
cd `dirname $@` && $(MAKE) `basename $@`
force: ;

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
8 changes: 4 additions & 4 deletions ic/sparc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ noinst_SCRIPTS = sparc-misc-auto.sh \
sparc-fpu-auto.sh \
sparc-vis-auto.sh \
sparc-bus-auto.sh
BUILT_SOURCES = $(noinst_SCRIPTS) sparc-auto.h sparc-insns-auto.c sparc-bus-auto.c sparc-fpu-auto.c sparc-vis-auto.c
CLEANFILES = $(BUILT_SOURCES)
BUILT_SOURCES = sparc-auto.h sparc-insns-auto.c sparc-bus-auto.c sparc-fpu-auto.c sparc-vis-auto.c
MAINTAINERCLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES)

EXTRA_DIST = sparc-impl.h \
$(BUILT_SOURCES) \
$(MAINTAINERCLEANFILES) \
$(noinst_SCRIPTS:.sh=.m4) \
sparc-execute.c \
sparc-rc-cc.c \
Expand Down Expand Up @@ -66,4 +66,4 @@ $(pkglib_LTLIBRARIES): ../ieee754/libtme-ieee754.la
cd `dirname $@` && $(MAKE) `basename $@`
force: ;

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion ic/stp22xx/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ tme_ic_stp22xx_la_LIBADD = $(TME_LIBS)
EXTRA_DIST = stp222x-impl.h \
stp22xx-impl.h

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
4 changes: 4 additions & 0 deletions libopenvpn/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,7 @@ nobase_pkginclude_HEADERS = \
win32.h

SUBDIRS = lib

.PHONY: modules

modules:
4 changes: 2 additions & 2 deletions libtme/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ noinst_SCRIPTS = memory-auto.sh

BUILT_SOURCES = memory-auto.h memory-auto.c

CLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES)
MAINTAINERCLEANFILES = $(noinst_SCRIPTS) $(BUILT_SOURCES)

EXTRA_DIST = log-prf.c \
misc.c \
$(CLEANFILES) \
$(MAINTAINERCLEANFILES) \
$(noinst_SCRIPTS:.sh=.m4)

# default rule for regenerating the portable shell scripts from m4 descriptions
Expand Down
2 changes: 1 addition & 1 deletion machine/sun/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ tme-sun-idprom: tme-sun-idprom.pl
tme-sun-eeprom: tme-sun-eeprom.pl $(top_srcdir)/tools/tme-binary-struct.pl.in
cat $(top_srcdir)/tools/tme-binary-struct.pl.in $(srcdir)/tme-sun-eeprom.pl | \
sed -e s%/usr/pkg/bin/perl%$(PERL)% > $@
include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion machine/sun2/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ tme_machine_sun2_la_LIBADD = ../sun/libtme-machine-sun.la $(TME_LIBS)
examplesdir = $(pkgdatadir)/examples
dist_examples_DATA = SUN2-MULTIBUS

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion machine/sun3/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ tme_machine_sun3_la_LIBADD = ../sun/libtme-machine-sun.la $(TME_LIBS)
examplesdir = $(pkgdatadir)/examples
dist_examples_DATA = SUN3-CARRERA sun3-carrera-eeprom.txt

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion machine/sun4/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ tme_machine_sun4_la_LIBADD = ../sun/libtme-machine-sun.la $(TME_LIBS)
examplesdir = $(pkgdatadir)/examples
dist_examples_DATA = SUN4-75

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
File renamed without changes.
2 changes: 1 addition & 1 deletion scsi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ tme_scsi_la_SOURCES = \
scsi-bus.c
tme_scsi_la_LIBADD = $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
2 changes: 1 addition & 1 deletion serial/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ tme_serial_kb_la_SOURCES = \
ms-mssystems.c
tme_serial_kb_la_LIBADD = $(TME_LIBS)

include $(top_srcdir)/modules
include $(top_srcdir)/modules.mk
6 changes: 2 additions & 4 deletions tmesh/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ AUTOMAKE_OPTIONS = 1.4 gnu

AM_CPPFLAGS = -I$(top_srcdir) -D_TME_IMPL @TME_HOST_CFLAGS@

noinst_LTLIBRARIES = libtmesh.la
libtmesh_la_SOURCES = \
tmesh_SOURCES = tmesh.c \
tmesh-impl.h \
tmesh-input.y \
tmesh-util.c \
tmesh-cmds.c \
tmesh-threads.c
libtmesh_la_LIBADD = $(top_builddir)/libtme/libtme.la

bin_PROGRAMS = tmesh
tmesh_LDADD = libtmesh.la $(tme_preopen) $(TME_HOST_LIBS)
tmesh_LDADD = $(top_builddir)/libtme/libtme.la $(tme_preopen) $(TME_HOST_LIBS)
tmesh_LDFLAGS = -dlpreopen force -dlopen self

EXTRA_DIST = tmesh.sh
Expand Down

0 comments on commit 8b2bdcb

Please sign in to comment.