mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[cpp] Extension .obj for C++ compiled files in Makefiles
This commit is contained in:
parent
df7a023756
commit
d93d7ff6cf
10
Makefile.lib
10
Makefile.lib
@ -139,6 +139,16 @@ endif
|
||||
rm .deps/$(*F).pp; \
|
||||
fi
|
||||
|
||||
%.obj: $(srcdir)%.cpp
|
||||
$(call mcmd,compile)
|
||||
@-if test -e .deps/$(*F).pp; then \
|
||||
cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm .deps/$(*F).pp; \
|
||||
fi
|
||||
|
||||
CLEAN += $(PROGS) $(OBJS) $(LIB_O_NAME)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
top_builddir=../../..
|
||||
include $(top_builddir)/Makefile.config
|
||||
|
||||
OBJS = renderer.o renderer2.o
|
||||
OBJS = renderer.obj renderer2.obj
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
|
@ -6,9 +6,9 @@ SUBDIRS-$(CONFIG_ECMASCRIPT_SMJS) += spidermonkey
|
||||
|
||||
SUBDIRS-$(CONFIG_QUICKJS) += quickjs
|
||||
|
||||
OBJS-$(CONFIG_ECMASCRIPT_SMJS) += css2xpath.o ecmascript.o localstorage-db.o spidermonkey.o
|
||||
OBJS-$(CONFIG_ECMASCRIPT_SMJS) += css2xpath.obj ecmascript.obj localstorage-db.obj spidermonkey.obj
|
||||
|
||||
OBJS-$(CONFIG_QUICKJS) += css2xpath.o ecmascript.o localstorage-db.o quickjs.o
|
||||
OBJS-$(CONFIG_QUICKJS) += css2xpath.obj ecmascript.obj localstorage-db.obj quickjs.obj
|
||||
|
||||
ifeq ($(CONFIG_ECMASCRIPT_SMJS), yes)
|
||||
CONFIG_ANY_SPIDERMONKEY = yes
|
||||
@ -18,6 +18,6 @@ else
|
||||
CONFIG_ANY_SPIDERMONKEY = no
|
||||
endif
|
||||
|
||||
OBJS-$(CONFIG_ANY_SPIDERMONKEY) += spidermonkey-shared.o
|
||||
OBJS-$(CONFIG_ANY_SPIDERMONKEY) += spidermonkey-shared.obj
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
|
@ -1,8 +1,8 @@
|
||||
top_builddir=../../..
|
||||
include $(top_builddir)/Makefile.config
|
||||
|
||||
OBJS = attr.o attributes.o collection.o console.o document.o element.o form.o \
|
||||
forms.o heartbeat.o history.o implementation.o input.o location.o \
|
||||
localstorage.o navigator.o nodelist.o screen.o unibar.o window.o
|
||||
OBJS = attr.obj attributes.obj collection.obj console.obj document.obj element.obj form.obj \
|
||||
forms.obj heartbeat.obj history.obj implementation.obj input.obj location.obj \
|
||||
localstorage.obj navigator.obj nodelist.obj screen.obj unibar.obj window.obj
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
|
@ -2,7 +2,7 @@ top_builddir=../../..
|
||||
include $(top_builddir)/Makefile.config
|
||||
INCLUDES += $(SPIDERMONKEY_CFLAGS)
|
||||
|
||||
OBJS = attr.o attributes.o collection.o console.o document.o element.o form.o forms.o heartbeat.o history.o implementation.o input.o \
|
||||
location.o localstorage.o navigator.o nodelist.o screen.o unibar.o window.o
|
||||
OBJS = attr.obj attributes.obj collection.obj console.obj document.obj element.obj form.obj forms.obj heartbeat.obj history.obj implementation.obj input.obj \
|
||||
location.obj localstorage.obj navigator.obj nodelist.obj screen.obj unibar.obj window.obj
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
|
@ -3,8 +3,8 @@ include $(top_builddir)/Makefile.config
|
||||
|
||||
INCLUDES += $(SPIDERMONKEY_CFLAGS)
|
||||
|
||||
OBJS = smjs.o core.o global_object.o hooks.o elinks_object.o cache_object.o \
|
||||
view_state_object.o action_object.o bookmarks.o globhist.o \
|
||||
keybinding.o load_uri.o session_object.o terminal_object.o
|
||||
OBJS = smjs.obj core.obj global_object.obj hooks.obj elinks_object.obj cache_object.obj \
|
||||
view_state_object.obj action_object.obj bookmarks.obj globhist.obj \
|
||||
keybinding.obj load_uri.obj session_object.obj terminal_object.obj
|
||||
|
||||
include $(top_srcdir)/Makefile.lib
|
||||
|
Loading…
Reference in New Issue
Block a user