source: trunk/ORBit2-2.14.0/Makefile.shared@ 360

Last change on this file since 360 was 92, checked in by cinc, 19 years ago

Orbit2 modified for use with NOM

File size: 773 bytes
Line 
1IDL_COMPILER = $(top_builddir)/src/idl-compiler/orbit-idl-2$(EXEEXT)
2
3%-stubs.c %-skels.c %-common.c %-imodule.c %-skelimpl.c: %.h
4 true
5
6%.h: $(IDL_DIR)%.idl $(IDL_COMPILER)
7 -(rm -f $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c || true) > /dev/null
8 $(IDL_COMPILER) $(IDL_FLAGS) --deps $(*D)/.deps/$(*F).idl.P $<
9 for I in $(*).h $(*)-stubs.c $(*)-skels.c $(*)-common.c $(*)-imodule.c $(*)-skelimpl.c; do \
10 if test -f $$I; then \
11 sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $$I > $$I.out; \
12 mv $$I.out $$I ; \
13 fi; \
14 done
15
16if MAINTAINER_MODE
17IDL_DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
18IDL_DEP_FILES = $(IDL_FILES:%.idl=.deps/%.idl.P)
19-include $(IDL_DEP_FILES)
20endif
21
22distclean-local:
23 -rm -rf .deps
Note: See TracBrowser for help on using the repository browser.