Skip to content

Commit 0c5e479

Browse files
authored
Merge pull request #51 from shindere/remove-c-headers
Stop generating C headers
2 parents 8117258 + 86bb76f commit 0c5e479

File tree

12 files changed

+140
-3110
lines changed

12 files changed

+140
-3110
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ _build/
2828
/config.status
2929
/config.sub
3030
/stamp-h1
31-
/config.h
3231
*.so
3332
/stdcompat__stubs.c
34-
/stdcompat.h
3533
/stdcompat__domain.mli.in
34+
/stdcompat_tests

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ MODULES = stdcompat__init.ml stdcompat__root.ml \
8181
stdcompat__unit.ml \
8282
stdcompat__stdlib.ml stdcompat.ml
8383

84+
OBJEXT := @OBJEXT@
85+
8486
# From https://github.com/fdopen/opam-repository-mingw/commit/3b4c52e17cfae96cfbf5120b60b8c2bbf5aad252
8587
# We prefer DLLEXT to conform with EXEEXT and OBJEXT
8688
DLLEXT := $(shell ocamlc -config | awk -F '[\t\r ]+' '/^ext_dll:/ {print $$2}')
@@ -91,7 +93,7 @@ LIBEXT := $(shell ocamlc -config | awk -F '[\t\r ]+' '/^ext_lib:/ {print $$2}')
9193
MODULES_native = stdcompat__native.ml $(MODULES)
9294

9395
mypkg_SCRIPTS = META $(MODULES_native) $(MODULES_native:.ml=.cmi) \
94-
libstdcompat__stubs$(LIBEXT) stdcompat.h
96+
libstdcompat__stubs$(LIBEXT)
9597

9698
if OCAML_SUPPORTS_BYTECODE
9799
mypkg_SCRIPTS += stdcompat.cma

Makefile.config.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

Makefile.in

Lines changed: 26 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,11 @@ DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
105105
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
106106
configure.lineno config.status.lineno
107107
mkinstalldirs = $(install_sh) -d
108-
CONFIG_HEADER = config.h
109108
CONFIG_CLEAN_FILES = META stdcompat__hashtbl_ext.mli \
110109
stdcompat__hashtbl_ext.ml stdcompat__init.mli \
111110
stdcompat__init.ml stdcompat__root.mli stdcompat__root.ml \
112111
stdcompat__tools.mli stdcompat__tools.ml stdcompat_tests.ml \
113-
stdcompat.h stdcompat__stubs.c stdcompat__pervasives_s.mli \
112+
stdcompat__stubs.c stdcompat__pervasives_s.mli \
114113
stdcompat__arg_s.mli stdcompat__array_s.mli \
115114
stdcompat__arrayLabels_s.mli stdcompat__atomic_s.mli \
116115
stdcompat__bool_s.mli stdcompat__buffer_s.mli \
@@ -245,27 +244,8 @@ am__can_run_installinfo = \
245244
n|no|NO) false;; \
246245
*) (install-info --version) >/dev/null 2>&1;; \
247246
esac
248-
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
249-
config.h.in
250-
# Read a list of newline-separated strings from the standard input,
251-
# and print each of them once, without duplicates. Input order is
252-
# *not* preserved.
253-
am__uniquify_input = $(AWK) '\
254-
BEGIN { nonempty = 0; } \
255-
{ items[$$0] = 1; nonempty = 1; } \
256-
END { if (nonempty) { for (i in items) print i; }; } \
257-
'
258-
# Make sure the list of sources is unique. This is necessary because,
259-
# e.g., the same source file might be shared among _SOURCES variables
260-
# for different programs/libraries.
261-
am__define_uniq_tagged_files = \
262-
list='$(am__tagged_files)'; \
263-
unique=`for i in $$list; do \
264-
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
265-
done | $(am__uniquify_input)`
266-
AM_RECURSIVE_TARGETS = cscope
247+
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
267248
am__DIST_COMMON = $(srcdir)/META.in $(srcdir)/Makefile.in \
268-
$(srcdir)/config.h.in $(srcdir)/stdcompat.h.in \
269249
$(srcdir)/stdcompat.ml.in $(srcdir)/stdcompat.mli.in \
270250
$(srcdir)/stdcompat__arg.ml.in $(srcdir)/stdcompat__arg.mli.in \
271251
$(srcdir)/stdcompat__arg_s.mli.in \
@@ -499,12 +479,7 @@ BEGIN_WITH_FLAMBDA2 = @BEGIN_WITH_FLAMBDA2@
499479
BEGIN_WITH_MAGIC = @BEGIN_WITH_MAGIC@
500480
BEGIN_WITH_UNIX = @BEGIN_WITH_UNIX@
501481
BEGIN_WITH_WIN32 = @BEGIN_WITH_WIN32@
502-
BIG_ENDIAN = @BIG_ENDIAN@
503-
CC = @CC@
504-
CCDEPMODE = @CCDEPMODE@
505-
CFLAGS = @CFLAGS@
506482
CMAX = @CMAX@
507-
CPPFLAGS = @CPPFLAGS@
508483
CSCOPE = @CSCOPE@
509484
CTAGS = @CTAGS@
510485
CYGPATH_W = @CYGPATH_W@
@@ -629,7 +604,6 @@ C_END_WITH_MAGIC = @C_END_WITH_MAGIC@
629604
C_END_WITH_UNIX = @C_END_WITH_UNIX@
630605
C_END_WITH_WIN32 = @C_END_WITH_WIN32@
631606
DEFS = @DEFS@
632-
DEPDIR = @DEPDIR@
633607
ECHO_C = @ECHO_C@
634608
ECHO_N = @ECHO_N@
635609
ECHO_T = @ECHO_T@
@@ -694,21 +668,19 @@ END_WITH_MAGIC = @END_WITH_MAGIC@
694668
END_WITH_UNIX = @END_WITH_UNIX@
695669
END_WITH_WIN32 = @END_WITH_WIN32@
696670
ETAGS = @ETAGS@
697-
EXEEXT = @EXEEXT@
698671
INCLUDE_DEPEND = @INCLUDE_DEPEND@
699672
INSTALL = @INSTALL@
700673
INSTALL_DATA = @INSTALL_DATA@
701674
INSTALL_PROGRAM = @INSTALL_PROGRAM@
702675
INSTALL_SCRIPT = @INSTALL_SCRIPT@
703676
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
704-
LDFLAGS = @LDFLAGS@
705677
LIBOBJS = @LIBOBJS@
706678
LIBS = @LIBS@
707679
LTLIBOBJS = @LTLIBOBJS@
708680
MAINT = @MAINT@
709681
MAKEINFO = @MAKEINFO@
710682
MKDIR_P = @MKDIR_P@
711-
OBJEXT = @OBJEXT@
683+
OBJEXT := @OBJEXT@
712684
OCAML = @OCAML@
713685
OCAMLBEST = @OCAMLBEST@
714686
OCAMLC = @OCAMLC@
@@ -744,10 +716,7 @@ abs_builddir = @abs_builddir@
744716
abs_srcdir = @abs_srcdir@
745717
abs_top_builddir = @abs_top_builddir@
746718
abs_top_srcdir = @abs_top_srcdir@
747-
ac_ct_CC = @ac_ct_CC@
748-
am__include = @am__include@
749719
am__leading_dot = @am__leading_dot@
750-
am__quote = @am__quote@
751720
am__rm_f_notfound = @am__rm_f_notfound@
752721
am__tar = @am__tar@
753722
am__untar = @am__untar@
@@ -878,8 +847,8 @@ DLLEXT := $(shell ocamlc -config | awk -F '[\t\r ]+' '/^ext_dll:/ {print $$2}')
878847
LIBEXT := $(shell ocamlc -config | awk -F '[\t\r ]+' '/^ext_lib:/ {print $$2}')
879848
MODULES_native = stdcompat__native.ml $(MODULES)
880849
mypkg_SCRIPTS = META $(MODULES_native) $(MODULES_native:.ml=.cmi) \
881-
libstdcompat__stubs$(LIBEXT) stdcompat.h $(am__append_1) \
882-
$(am__append_2) $(am__append_3) $(am__append_5)
850+
libstdcompat__stubs$(LIBEXT) $(am__append_1) $(am__append_2) \
851+
$(am__append_3) $(am__append_5)
883852
@OCAML_SUPPORTS_BYTECODE_TRUE@BEST_SUFFIX := .cmo
884853
@OCAML_SUPPORTS_NATIVE_TRUE@BEST_SUFFIX := .cmx
885854
PACKAGES =
@@ -894,8 +863,7 @@ CLEANFILES = *.cmi *.cmo *.cmx *.cmt *.cmti *.$(OBJEXT) *$(LIBEXT) stdcompat.cma
894863
stdcompat.cmxa stdcompat__native.ml dllstdcompat__stubs$(DLLEXT) \
895864
stdcompat.cmxs $(STDCOMPAT_TESTS_EXE) $(bin_SCRIPTS) .depend
896865

897-
all: config.h
898-
$(MAKE) $(AM_MAKEFLAGS) all-am
866+
all: all-am
899867

900868
.SUFFIXES:
901869
.SUFFIXES: .ml .mli .cmi .cmo .cmx .cmxa .cmxs .cmt
@@ -932,21 +900,6 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
932900
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
933901
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
934902
$(am__aclocal_m4_deps):
935-
936-
config.h: stamp-h1
937-
@test -f $@ || rm -f stamp-h1
938-
@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
939-
940-
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
941-
$(AM_V_at)rm -f stamp-h1
942-
$(AM_V_GEN)cd $(top_builddir) && $(SHELL) ./config.status config.h
943-
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
944-
$(AM_V_GEN)($(am__cd) $(top_srcdir) && $(AUTOHEADER))
945-
$(AM_V_at)rm -f stamp-h1
946-
$(AM_V_at)touch $@
947-
948-
distclean-hdr:
949-
-rm -f config.h stamp-h1
950903
META: $(top_builddir)/config.status $(srcdir)/META.in
951904
cd $(top_builddir) && $(SHELL) ./config.status $@
952905
stdcompat__hashtbl_ext.mli: $(top_builddir)/config.status $(srcdir)/stdcompat__hashtbl_ext.mli.in
@@ -967,8 +920,6 @@ stdcompat__tools.ml: $(top_builddir)/config.status $(srcdir)/stdcompat__tools.ml
967920
cd $(top_builddir) && $(SHELL) ./config.status $@
968921
stdcompat_tests.ml: $(top_builddir)/config.status $(srcdir)/stdcompat_tests.ml.in
969922
cd $(top_builddir) && $(SHELL) ./config.status $@
970-
stdcompat.h: $(top_builddir)/config.status $(srcdir)/stdcompat.h.in
971-
cd $(top_builddir) && $(SHELL) ./config.status $@
972923
stdcompat__stubs.c: $(top_builddir)/config.status $(srcdir)/stdcompat__stubs.c.in
973924
cd $(top_builddir) && $(SHELL) ./config.status $@
974925
stdcompat__pervasives_s.mli: $(top_builddir)/config.status $(srcdir)/stdcompat__pervasives_s.mli.in
@@ -1386,65 +1337,12 @@ uninstall-mypkgSCRIPTS:
13861337
files=`for p in $$list; do echo "$$p"; done | \
13871338
sed -e 's,.*/,,;$(transform)'`; \
13881339
dir='$(DESTDIR)$(mypkgdir)'; $(am__uninstall_files_from_dir)
1340+
tags TAGS:
13891341

1390-
ID: $(am__tagged_files)
1391-
$(am__define_uniq_tagged_files); mkid -fID $$unique
1392-
tags: tags-am
1393-
TAGS: tags
1394-
1395-
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1396-
set x; \
1397-
here=`pwd`; \
1398-
$(am__define_uniq_tagged_files); \
1399-
shift; \
1400-
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1401-
test -n "$$unique" || unique=$$empty_fix; \
1402-
if test $$# -gt 0; then \
1403-
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1404-
"$$@" $$unique; \
1405-
else \
1406-
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1407-
$$unique; \
1408-
fi; \
1409-
fi
1410-
ctags: ctags-am
1411-
1412-
CTAGS: ctags
1413-
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1414-
$(am__define_uniq_tagged_files); \
1415-
test -z "$(CTAGS_ARGS)$$unique" \
1416-
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1417-
$$unique
1418-
1419-
GTAGS:
1420-
here=`$(am__cd) $(top_builddir) && pwd` \
1421-
&& $(am__cd) $(top_srcdir) \
1422-
&& gtags -i $(GTAGS_ARGS) "$$here"
1423-
cscope: cscope.files
1424-
test ! -s cscope.files \
1425-
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
1426-
clean-cscope:
1427-
-rm -f cscope.files
1428-
cscope.files: clean-cscope cscopelist
1429-
cscopelist: cscopelist-am
1430-
1431-
cscopelist-am: $(am__tagged_files)
1432-
list='$(am__tagged_files)'; \
1433-
case "$(srcdir)" in \
1434-
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1435-
*) sdir=$(subdir)/$(srcdir) ;; \
1436-
esac; \
1437-
for i in $$list; do \
1438-
if test -f "$$i"; then \
1439-
echo "$(subdir)/$$i"; \
1440-
else \
1441-
echo "$$sdir/$$i"; \
1442-
fi; \
1443-
done >> $(top_builddir)/cscope.files
1342+
ctags CTAGS:
1343+
1344+
cscope cscopelist:
14441345

1445-
distclean-tags:
1446-
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1447-
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
14481346
distdir: $(BUILT_SOURCES)
14491347
$(MAKE) $(AM_MAKEFLAGS) distdir-am
14501348

@@ -1619,7 +1517,7 @@ distcleancheck: distclean
16191517
exit 1; } >&2
16201518
check-am: all-am
16211519
check: check-am
1622-
all-am: Makefile $(SCRIPTS) config.h
1520+
all-am: Makefile $(SCRIPTS)
16231521
installdirs:
16241522
for dir in "$(DESTDIR)$(mypkgdir)"; do \
16251523
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
@@ -1662,7 +1560,7 @@ clean-am: clean-generic mostlyclean-am
16621560
distclean: distclean-am
16631561
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
16641562
-rm -f Makefile
1665-
distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
1563+
distclean-am: clean-am distclean-generic
16661564

16671565
dvi: dvi-am
16681566

@@ -1725,22 +1623,21 @@ ps-am:
17251623

17261624
uninstall-am: uninstall-mypkgSCRIPTS
17271625

1728-
.MAKE: all install-am install-exec-am install-strip
1729-
1730-
.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
1731-
clean-cscope clean-generic cscope cscopelist-am ctags ctags-am \
1732-
dist dist-all dist-bzip2 dist-gzip dist-lzip dist-shar \
1733-
dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \
1734-
distclean-generic distclean-hdr distclean-tags distcleancheck \
1735-
distdir distuninstallcheck dvi dvi-am html html-am info \
1736-
info-am install install-am install-data install-data-am \
1737-
install-dvi install-dvi-am install-exec install-exec-am \
1738-
install-exec-hook install-html install-html-am install-info \
1739-
install-info-am install-man install-mypkgSCRIPTS install-pdf \
1740-
install-pdf-am install-ps install-ps-am install-strip \
1741-
installcheck installcheck-am installdirs maintainer-clean \
1626+
.MAKE: install-am install-exec-am install-strip
1627+
1628+
.PHONY: all all-am am--refresh check check-am clean clean-generic \
1629+
cscopelist-am ctags-am dist dist-all dist-bzip2 dist-gzip \
1630+
dist-lzip dist-shar dist-tarZ dist-xz dist-zip dist-zstd \
1631+
distcheck distclean distclean-generic distcleancheck distdir \
1632+
distuninstallcheck dvi dvi-am html html-am info info-am \
1633+
install install-am install-data install-data-am install-dvi \
1634+
install-dvi-am install-exec install-exec-am install-exec-hook \
1635+
install-html install-html-am install-info install-info-am \
1636+
install-man install-mypkgSCRIPTS install-pdf install-pdf-am \
1637+
install-ps install-ps-am install-strip installcheck \
1638+
installcheck-am installdirs maintainer-clean \
17421639
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
1743-
pdf-am ps ps-am tags tags-am uninstall uninstall-am \
1640+
pdf-am ps ps-am tags-am uninstall uninstall-am \
17441641
uninstall-mypkgSCRIPTS
17451642

17461643
.PRECIOUS: Makefile

0 commit comments

Comments
 (0)