File: Makefile.shared

package info (click to toggle)
orbit2 2.3.107-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,952 kB
  • ctags: 12,012
  • sloc: ansic: 45,175; sh: 6,757; makefile: 1,013
file content (19 lines) | stat: -rw-r--r-- 752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
IDL_COMPILER = $(top_builddir)/src/idl-compiler/orbit-idl-2

%.h %-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: $(IDL_DIR)%.idl $(IDL_COMPILER)
	-(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null
	$(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $< 
	for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \
		if test -f $$I; then \
			sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \
			mv $$I.out $$I ; \
		fi; \
	done

if MAINTAINER_MODE
IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P)
-include $(IDL_DEP_FILES)
distclean-local:
	-rm -rf .deps
endif