From 06d9e8754e05e5d4bcfaed8a61061e150544c829 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 23 May 2024 08:57:48 +0200 Subject: [PATCH] build-systems: remove Makefile, autotools and Android.mk Remove plain old Makefile, autotools and Android.mk support. This clauses less friction when adding new tools. Link: https://github.com/linux-can/can-utils/issues/526 --- Android.mk | 498 --------------------- GNUmakefile.am | 198 -------- Makefile | 194 -------- autogen.sh | 22 - check_cc.sh | 16 - config/m4/.secret-world-domination-project | 0 configure.ac | 141 ------ fork_test.c | 27 -- 8 files changed, 1096 deletions(-) delete mode 100644 Android.mk delete mode 100644 GNUmakefile.am delete mode 100644 Makefile delete mode 100755 autogen.sh delete mode 100755 check_cc.sh delete mode 100644 config/m4/.secret-world-domination-project delete mode 100644 configure.ac delete mode 100644 fork_test.c diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 35454b60..00000000 --- a/Android.mk +++ /dev/null @@ -1,498 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -PRIVATE_LOCAL_CFLAGS := -O2 -g -W -Wall \ - -Wno-error=unused-parameter \ - -DSO_RXQ_OVFL=40 \ - -DPF_CAN=29 \ - -DAF_CAN=PF_CAN - -# -# canlib -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := lib.c canframelen.c -LOCAL_MODULE := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_STATIC_LIBRARY) - -# -# j1939lib -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := libj1939.c -LOCAL_MODULE := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_STATIC_LIBRARY) - -# -# j1939acd -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939acd.c -LOCAL_MODULE := j1939acd -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# j1939cat -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939cat.c -LOCAL_MODULE := j1939cat -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# j1939spy -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939spy.c -LOCAL_MODULE := j1939spy -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# j1939sr -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := j1939sr.c -LOCAL_MODULE := j1939sr -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# testj1939 -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := testj1939.c -LOCAL_MODULE := testj1939 -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libj1939 -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# candump -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := candump.c -LOCAL_MODULE := candump -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cansend -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cansend.c -LOCAL_MODULE := cansend -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cansequence -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cansequence.c -LOCAL_MODULE := cansequence -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) - -include $(BUILD_EXECUTABLE) - -# -# bcmserver -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := bcmserver.c -LOCAL_MODULE := bcmserver -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# can-calc-bit-timing -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := calc-bit-timing/can-calc-bit-timing.c -LOCAL_MODULE := can-calc-bit-timing -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canbusload -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canbusload.c -LOCAL_MODULE := canbusload -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canfdtest -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canfdtest.c -LOCAL_MODULE := canfdtest -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cangen -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cangen.c -LOCAL_MODULE := cangen -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cangw -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cangw.c -LOCAL_MODULE := cangw -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canlogserver -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canlogserver.c -LOCAL_MODULE := canlogserver -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# canplayer -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := canplayer.c -LOCAL_MODULE := canplayer -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# cansniffer -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := cansniffer.c -LOCAL_MODULE := cansniffer -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpdump -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpdump.c -LOCAL_MODULE := isotpdump -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotprecv -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotprecv.c -LOCAL_MODULE := isotprecv -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpsend -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpsend.c -LOCAL_MODULE := isotpsend -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpserver -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpserver.c -LOCAL_MODULE := isotpserver -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpsniffer -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpsniffer.c -LOCAL_MODULE := isotpsniffer -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotptun -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotptun.c -LOCAL_MODULE := isotptun -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# isotpperf -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := isotpperf.c -LOCAL_MODULE := isotpperf -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# log2asc -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := log2asc.c -LOCAL_MODULE := log2asc -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# asc2log -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := asc2log.c -LOCAL_MODULE := asc2log -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# log2long -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := log2long.c -LOCAL_MODULE := log2long -LOCAL_MODULE_TAGS := optional -LOCAL_STATIC_LIBRARIES := libcan -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# slcan_attach -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := slcan_attach.c -LOCAL_MODULE := slcan_attach -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# slcand -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := slcand.c -LOCAL_MODULE := slcand -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) - -# -# slcanpty -# - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := lib.c slcanpty.c -LOCAL_MODULE := slcanpty -LOCAL_MODULE_TAGS := optional -LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ -LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -LOCAL_VENDOR_MODULE := true - -include $(BUILD_EXECUTABLE) diff --git a/GNUmakefile.am b/GNUmakefile.am deleted file mode 100644 index 1f06437f..00000000 --- a/GNUmakefile.am +++ /dev/null @@ -1,198 +0,0 @@ -ACLOCAL_AMFLAGS = -I config/m4 - -AM_CPPFLAGS = \ - -I$(top_srcdir)/include \ - -I$(top_builddir)/include \ - $(linux_CFLAGS) - -EXTRA_DIST = - -# link every app against libcan, it's static so it wouldn't hurt -LDADD = \ - libcan.la - -noinst_HEADERS = \ - canframelen.h \ - isobusfs/isobusfs_cli.h \ - isobusfs/isobusfs_cmn.h \ - isobusfs/isobusfs_cmn_cm.h \ - isobusfs/isobusfs_cmn_dh.h \ - isobusfs/isobusfs_cmn_fa.h \ - isobusfs/isobusfs_cmn_fh.h \ - isobusfs/isobusfs_cmn_va.h \ - isobusfs/isobusfs_srv.h \ - lib.h \ - libj1939.h \ - terminal.h \ - include/linux/can.h \ - include/linux/can/bcm.h \ - include/linux/can/error.h \ - include/linux/can/gw.h \ - include/linux/can/isotp.h \ - include/linux/can/j1939.h \ - include/linux/can/netlink.h \ - include/linux/can/raw.h \ - include/linux/can/vxcan.h \ - include/linux/errqueue.h \ - include/linux/kernel.h \ - include/linux/net_tstamp.h \ - include/linux/netlink.h - -noinst_LTLIBRARIES = \ - libcan.la \ - libj1939.la - -libcan_la_SOURCES = \ - lib.c \ - canframelen.c - -libj1939_la_SOURCES = \ - libj1939.c - -can_calc_bit_timing_SOURCES = \ - calc-bit-timing/can-calc-bit-timing.c \ - calc-bit-timing/compat.h - -EXTRA_DIST += \ - calc-bit-timing/can-calc-bit-timing-v2_6_31.c \ - calc-bit-timing/can-calc-bit-timing-v3_18.c \ - calc-bit-timing/can-calc-bit-timing-v4_8.c \ - calc-bit-timing/can-calc-bit-timing-v5_16.c \ - calc-bit-timing/can-calc-bit-timing-v5_19.c \ - calc-bit-timing/can-calc-bit-timing-v6_3.c - -mcp251xfd_dump_SOURCES = \ - mcp251xfd/mcp251xfd-dev-coredump.c \ - mcp251xfd/mcp251xfd-dump-userspace.h \ - mcp251xfd/mcp251xfd-dump.c \ - mcp251xfd/mcp251xfd-dump.h \ - mcp251xfd/mcp251xfd-main.c \ - mcp251xfd/mcp251xfd-regmap.c \ - mcp251xfd/mcp251xfd.h - -EXTRA_DIST += \ - mcp251xfd/99-devcoredump.rules \ - mcp251xfd/data/devcoredump-canfd-v5.15.dump \ - mcp251xfd/data/devcoredump-canfd.dump \ - mcp251xfd/data/devcoredump-classic-can-v5.15.dump \ - mcp251xfd/data/devcoredump-classic-can.dump \ - mcp251xfd/data/registers-canfd-v5.15.dump \ - mcp251xfd/data/registers-canfd.dump \ - mcp251xfd/data/registers-classic-can-v5.15.dump \ - mcp251xfd/data/registers-classic-can.dump \ - mcp251xfd/devcoredump \ - mcp251xfd/mcp251xfd-gen-testdata.sh - -lib_LTLIBRARIES = \ - libisobusfs.la - -libisobusfs_la_SOURCES = \ - isobusfs/isobusfs_cmn.c \ - isobusfs/isobusfs_cmn_dh.c - -bin_PROGRAMS = \ - asc2log \ - can-calc-bit-timing \ - canbusload \ - candump \ - canfdtest \ - cangen \ - cangw \ - canplayer \ - cansend \ - cansequence \ - cansniffer \ - isobusfs-cli \ - isobusfs-srv \ - isotpdump \ - isotpperf \ - isotprecv \ - isotpsend \ - isotpsniffer \ - isotptun \ - j1939acd \ - j1939cat \ - j1939spy \ - j1939sr \ - log2asc \ - log2long \ - mcp251xfd-dump \ - slcan_attach \ - slcand \ - slcanpty \ - testj1939 - -if HAVE_FORK -bin_PROGRAMS += \ - bcmserver \ - canlogserver \ - isotpserver -endif - -isobusfs_cli_SOURCES = \ - isobusfs/isobusfs_cli.c \ - isobusfs/isobusfs_cli_cm.c \ - isobusfs/isobusfs_cli_dh.c \ - isobusfs/isobusfs_cli_fa.c \ - isobusfs/isobusfs_cli_selftests.c \ - isobusfs/isobusfs_cli_int.c - -isobusfs_cli_LDADD = \ - libisobusfs.la \ - libcan.la - -isobusfs_srv_SOURCES = \ - isobusfs/isobusfs_srv.c \ - isobusfs/isobusfs_srv_cm.c \ - isobusfs/isobusfs_srv_cm_fss.c \ - isobusfs/isobusfs_srv_dh.c \ - isobusfs/isobusfs_srv_fa.c \ - isobusfs/isobusfs_srv_fh.c \ - isobusfs/isobusfs_srv_vh.c - -isobusfs_srv_LDADD = \ - libisobusfs.la \ - libcan.la - -EXTRA_DIST += \ - isobusfs/isobusfs_create_test_dirs.sh \ - isobusfs/isobusfs_create_test_file.sh - -j1939acd_LDADD = libj1939.la -j1939cat_LDADD = libj1939.la -j1939spy_LDADD = libj1939.la -j1939sr_LDADD = libj1939.la -testj1939_LDADD = libj1939.la - -EXTRA_DIST += \ - .travis.yml \ - Android.mk \ - README.md \ - autogen.sh \ - can-j1939-kickstart.md \ - can-j1939.md \ - can-tc-init-etf.sh - -MAINTAINERCLEANFILES = \ - configure \ - GNUmakefile.in \ - aclocal.m4 \ - config/autoconf/compile \ - config/autoconf/config.guess \ - config/autoconf/config.sub \ - config/autoconf/depcomp \ - config/autoconf/install-sh \ - config/autoconf/ltmain.sh \ - config/autoconf/mdate-sh \ - config/autoconf/missing \ - config/autoconf/texinfo.tex \ - config/m4/libtool.m4 \ - config/m4/ltoptions.m4 \ - config/m4/ltsugar.m4 \ - config/m4/ltversion.m4 \ - config/m4/lt~obsolete.m4 \ - $(DIST_ARCHIVES) - -maintainer-clean-local: - -chmod -R a+rw $(distdir) - -rm -fr $(distdir) diff --git a/Makefile b/Makefile deleted file mode 100644 index d2d9c545..00000000 --- a/Makefile +++ /dev/null @@ -1,194 +0,0 @@ -# -# Copyright (c) 2002-2005 Volkswagen Group Electronic Research -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions, the following disclaimer and -# the referenced file 'COPYING'. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. Neither the name of Volkswagen nor the names of its contributors -# may be used to endorse or promote products derived from this software -# without specific prior written permission. -# -# Alternatively, provided that this notice is retained in full, this -# software may be distributed under the terms of the GNU General -# Public License ("GPL") version 2 as distributed in the 'COPYING' -# file from the main directory of the linux kernel source. -# -# The provided data structures and external interfaces from this code -# are not restricted to be used by modules with a GPL compatible license. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH -# DAMAGE. -# -# Send feedback to - -DESTDIR ?= -PREFIX ?= /usr/local - -MAKEFLAGS := -k - -CFLAGS := -O2 -Wall -Wno-parentheses -Wsign-compare - -HAVE_FORK := $(shell ./check_cc.sh "$(CC)" fork_test.c) - -CPPFLAGS += \ - -I. \ - -Iinclude \ - -DAF_CAN=PF_CAN \ - -DPF_CAN=29 \ - -DSO_RXQ_OVFL=40 \ - -DSCM_TIMESTAMPING_OPT_STATS=54 \ - -DCLOCK_TAI=11 \ - -DSO_TXTIME=61 \ - -DSCM_TXTIME=SO_TXTIME \ - -D_FILE_OFFSET_BITS=64 \ - -D_GNU_SOURCE - -PROGRAMS_CANGW := \ - cangw - -PROGRAMS_ISOBUSFS := \ - isobusfs-srv \ - isobusfs-cli - -PROGRAMS_ISOTP := \ - isotpdump \ - isotpperf \ - isotprecv \ - isotpsend \ - isotpsniffer \ - isotptun - -ifeq ($(HAVE_FORK),1) -PROGRAMS_ISOTP += \ - isotpserver -endif - -PROGRAMS_J1939 := \ - j1939acd \ - j1939cat \ - j1939spy \ - j1939sr \ - testj1939 - -PROGRAMS_SLCAN := \ - slcan_attach \ - slcand - -PROGRAMS := \ - $(PROGRAMS_CANGW) \ - $(PROGRAMS_ISOBUSFS) \ - $(PROGRAMS_ISOTP) \ - $(PROGRAMS_J1939) \ - $(PROGRAMS_SLCAN) \ - asc2log \ - can-calc-bit-timing \ - canbusload \ - candump \ - canfdtest \ - cangen \ - cansequence \ - canplayer \ - cansend \ - cansniffer \ - log2asc \ - log2long \ - mcp251xfd-dump \ - slcanpty - -ifeq ($(HAVE_FORK),1) -PROGRAMS += \ - canlogserver \ - bcmserver -endif - -all: $(PROGRAMS) - -clean: - rm -f $(PROGRAMS) *.o mcp251xfd/*.o isobusfs/*.o - -install: - mkdir -p $(DESTDIR)$(PREFIX)/bin - cp -f $(PROGRAMS) $(DESTDIR)$(PREFIX)/bin - -distclean: clean - rm -f $(PROGRAMS) $(LIBRARIES) *~ - -asc2log.o: lib.h -candump.o: lib.h -cangen.o: lib.h -canlogserver.o: lib.h -canplayer.o: lib.h -cansend.o: lib.h -log2asc.o: lib.h -log2long.o: lib.h -slcanpty.o: lib.h -j1939acd.o: libj1939.h -j1939cat.o: libj1939.h -j1939spy.o: libj1939.h -j1939sr.o: libj1939.h -testj1939.o: libj1939.h -isobusfs_srv.o: lib.h -isobusfs_c.o: lib.h -canframelen.o: canframelen.h - -asc2log: asc2log.o lib.o -canbusload: canbusload.o canframelen.o -candump: candump.o lib.o -cangen: cangen.o lib.o -canlogserver: canlogserver.o lib.o -canplayer: canplayer.o lib.o -cansend: cansend.o lib.o -cansequence: cansequence.o lib.o -log2asc: log2asc.o lib.o -log2long: log2long.o lib.o -slcanpty: slcanpty.o lib.o -j1939acd: j1939acd.o libj1939.o -j1939cat: j1939cat.o libj1939.o -j1939spy: j1939spy.o libj1939.o -j1939sr: j1939sr.o libj1939.o -testj1939: testj1939.o libj1939.o - -isobusfs-srv: lib.o \ - isobusfs/isobusfs_cmn.o \ - isobusfs/isobusfs_srv.o \ - isobusfs/isobusfs_srv_cm.o \ - isobusfs/isobusfs_srv_cm_fss.o \ - isobusfs/isobusfs_srv_dh.o \ - isobusfs/isobusfs_srv_fa.o \ - isobusfs/isobusfs_srv_fh.o \ - isobusfs/isobusfs_srv_vh.o \ - isobusfs/isobusfs_cmn_dh.o - $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ - -isobusfs-cli: lib.o \ - isobusfs/isobusfs_cmn.o \ - isobusfs/isobusfs_cli.o \ - isobusfs/isobusfs_cli_cm.o \ - isobusfs/isobusfs_cli_dh.o \ - isobusfs/isobusfs_cli_fa.o \ - isobusfs/isobusfs_cli_selftests.o \ - isobusfs/isobusfs_cli_int.o - $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ - -can-calc-bit-timing: calc-bit-timing/can-calc-bit-timing.o - $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ - -mcp251xfd-dump: mcp251xfd/mcp251xfd-dev-coredump.o mcp251xfd/mcp251xfd-dump.o mcp251xfd/mcp251xfd-main.o mcp251xfd/mcp251xfd-regmap.o - $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 6d1c20a2..00000000 --- a/autogen.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# -# usage: -# -# banner -# -banner() { - echo - TG=`echo $1 | sed -e "s,/.*/,,g"` - LINE=`echo $TG |sed -e "s/./-/g"` - echo $LINE - echo $TG - echo $LINE - echo -} - -banner "autoreconf" - -autoreconf --force --install -Wall || exit $? - -banner "Finished" diff --git a/check_cc.sh b/check_cc.sh deleted file mode 100755 index d85ad129..00000000 --- a/check_cc.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# SPDX-License-Identifier: GPL-2.0-only -# check_cc.sh - Helper to test userspace compilation support -# Copyright (c) 2015 Andrew Lutomirski - -CC="$1" -TESTPROG="$2" -shift 2 - -if [ -n "$CC" ] && $CC -o /dev/null "$TESTPROG" -O0 "$@"; then - echo 1 -else - echo 0 -fi - -exit 0 diff --git a/config/m4/.secret-world-domination-project b/config/m4/.secret-world-domination-project deleted file mode 100644 index e69de29b..00000000 diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 9bf62a5c..00000000 --- a/configure.ac +++ /dev/null @@ -1,141 +0,0 @@ -# -*- Autoconf -*- -# Process this file with autoconf to produce a configure script. -AC_PREREQ([2.59]) - -AC_INIT([can-utils],[trunk],[linux-can@vger.kernel.org]) -AC_CONFIG_SRCDIR([lib.c]) -AC_CONFIG_MACRO_DIR([config/m4]) -AC_CONFIG_AUX_DIR([config/autoconf]) -AC_CANONICAL_BUILD -AC_CANONICAL_HOST - -# If possible, enable extensions to Posix -AC_USE_SYSTEM_EXTENSIONS - -#AM_MAINTAINER_MODE - -CFLAGS="${CFLAGS} -Wall" - -# -# Checks for programs. -# -AC_PROG_CC -LT_INIT(win32-dll) - -AM_INIT_AUTOMAKE([foreign no-exeext dist-bzip2 subdir-objects]) -m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) - -# -# Checks for header files. -# -AC_CHECK_HEADERS([ \ - fcntl.h \ - limits.h \ - locale.h \ - stdint.h \ - stdlib.h \ - string.h \ - syslog.h \ - termios.h \ - unistd.h \ - \ - netinet/in.h \ - \ - sys/ioctl.h \ - sys/socket.h \ - sys/time.h \ -]) - - -# -# Checks for typedefs, structures, and compiler characteristics. -# -AC_C_INLINE -AC_SYS_LARGEFILE -AC_TYPE_OFF_T -AC_TYPE_PID_T -AC_TYPE_UINT64_T - - -# -# Checks for library functions. -# -AC_FUNC_FORK -AC_FUNC_MKTIME -AC_CHECK_FUNCS([ \ - alarm \ - gettimeofday \ - localtime_r \ - memset \ - select \ - setlocale \ - socket \ - strchr \ - strerror \ - strstr \ - strtoul \ -]) - -AM_CONDITIONAL(HAVE_FORK, test "$ac_cv_func_fork_works" = "yes") - -# glibc versions before 2.17 needs to link with -lrt for clock_nanosleep -AC_SEARCH_LIBS([clock_nanosleep], [rt]) - -AC_CHECK_DECL(SO_RXQ_OVFL,, - [AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])], - [[#include ]] -) -AC_CHECK_DECL(PF_CAN,, - [AC_DEFINE([PF_CAN], [29], [PF_CAN])], - [[#include ]] -) -AC_CHECK_DECL(AF_CAN,, - [AC_DEFINE([AF_CAN], [PF_CAN], [AF_CAN])], - [[#include ]] -) -AC_CHECK_DECL(N_SLCAN,, - [AC_DEFINE([N_SLCAN], [17], [N_SLCAN])], - [[#include ]] -) -AC_CHECK_DECL(SCM_TIMESTAMPING_OPT_STATS,, - [AC_DEFINE([SCM_TIMESTAMPING_OPT_STATS], [54], [SCM_TIMESTAMPING_OPT_STATS])], - [[#include ]] -) -AC_CHECK_DECL(CLOCK_TAI,, - [AC_DEFINE([CLOCK_TAI], [11], [CLOCK_TAI])], - [[#include ]] -) -AC_CHECK_DECL(SO_TXTIME,, - [AC_DEFINE([SO_TXTIME], [61], [SO_TXTIME])], - [[#include ]] -) -AC_CHECK_DECL(SCM_TXTIME,, - [AC_DEFINE([SCM_TXTIME], [SO_TXTIME], [SCM_TXTIME])], - [[#include ]] -) - - -# -# Debugging -# -AC_MSG_CHECKING([whether to enable debugging]) -AC_ARG_ENABLE(debug, - AS_HELP_STRING([--enable-debug], [enable debugging [[default=no]]]), - [case "$enableval" in - (y | yes) CONFIG_DEBUG=yes ;; - (*) CONFIG_DEBUG=no ;; - esac], - [CONFIG_DEBUG=no]) -AC_MSG_RESULT([${CONFIG_DEBUG}]) -if test "${CONFIG_DEBUG}" = "yes"; then - CFLAGS="${CFLAGS} -Wsign-compare -Wfloat-equal -Wformat-security -g -O1" - AC_DEFINE(DEBUG, 1, [debugging]) -else - CFLAGS="${CFLAGS} -O2" -fi - - -AC_CONFIG_FILES([ - GNUmakefile - ]) -AC_OUTPUT diff --git a/fork_test.c b/fork_test.c deleted file mode 100644 index 03669239..00000000 --- a/fork_test.c +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Copyright (C) 2023 Dario Binacchi - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the version 2 of the GNU General Public License - * as published by the Free Software Foundation - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ - -#include -#include -#include - -int main(int argc, char **argv) -{ - fork(); - - return 0; -}