File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ $(OUTPUT)cpfromfs$(EXESUF): cptofs$(EXESUF)
87
87
clean :
88
88
$(call QUIET_CLEAN, objects) find $(OUTPUT ) -name ' *.o' -delete -o -name ' \.*.cmd' \
89
89
-delete -o -name ' \.*.d' -delete
90
- $(call QUIET_CLEAN, headers)$(RM ) -r $(OUTPUT ) /include/lkl/
90
+ $(call QUIET_CLEAN, headers)$(RM ) -r $(OUTPUT ) /include/lkl/ \
91
+ $(OUTPUT ) include/lkl_autoconf.h
91
92
$(call QUIET_CLEAN, liblkl.a)$(RM ) $(OUTPUT ) /liblkl.a
92
93
$(call QUIET_CLEAN, targets)$(RM ) $(TARGETS ) bin/stat
93
94
@@ -97,7 +98,8 @@ clean-conf: clean
97
98
headers_install : $(TARGETS )
98
99
$(call QUIET_INSTALL, headers) \
99
100
install -d $(DESTDIR )$(PREFIX ) /include ; \
100
- install -m 644 include/lkl.h include/lkl_host.h $(DESTDIR )$(PREFIX ) /include ; \
101
+ install -m 644 include/lkl.h include/lkl_host.h $(OUTPUT ) include/lkl_autoconf.h \
102
+ $(DESTDIR )$(PREFIX ) /include ; \
101
103
cp -r $(OUTPUT ) include/lkl $(DESTDIR )$(PREFIX ) /include
102
104
103
105
libraries_install : $(libs-y:%=$(OUTPUT ) %$(SOSUF ) )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ NT_HOSTS=pe-i386 pe-x86-64
3
3
4
4
define set_autoconf_var
5
5
$(shell echo "#define LKL_HOST_CONFIG_$(1) $(2)" \
6
- >> $(OUTPUT)/include/autoconf .h)
6
+ >> $(OUTPUT)/include/lkl_autoconf .h)
7
7
$(shell echo "LKL_HOST_CONFIG_$(1)=$(2)" >> $(OUTPUT)/tests/autoconf.sh)
8
8
export LKL_HOST_CONFIG_$(1)=$(2)
9
9
endef
@@ -98,6 +98,6 @@ export do_autoconf
98
98
$(OUTPUT)Makefile.conf: Makefile.autoconf
99
99
$(shell mkdir -p $(OUTPUT)/include)
100
100
$(shell mkdir -p $(OUTPUT)/tests)
101
- $(shell echo -n "" > $(OUTPUT)/include/autoconf .h)
101
+ $(shell echo -n "" > $(OUTPUT)/include/lkl_autoconf .h)
102
102
$(shell echo -n "" > $(OUTPUT)/tests/autoconf.sh)
103
103
@echo "$$do_autoconf" > $(OUTPUT)/Makefile.conf
Original file line number Diff line number Diff line change 1
1
#ifndef _LKL_H
2
2
#define _LKL_H
3
3
4
- #include "autoconf .h"
4
+ #include "lkl_autoconf .h"
5
5
6
6
#ifdef __cplusplus
7
7
extern "C" {
You can’t perform that action at this time.
0 commit comments