summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/contrib/mcpp/Makefile.am
blob: fd6e8012b4c05aff8f36a122f32cea5ca0c74fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
## Process this file with automake to produce Makefile.in

if MCPP_LIB

bin_PROGRAMS = mcpp
mcpp_SOURCES = main_libmcpp.c
mcpp_DEPENDENCIES = libmcpp.la
mcpp_LDADD = -lmcpp
lib_LTLIBRARIES = libmcpp.la
libmcpp_la_SOURCES = system.H configed.H internal.H main.c directive.c  \
    eval.c expand.c mbchar.c support.c system.c
libmcpp_la_LDFLAGS = -no-undefined -version-info 3:0:3
include_HEADERS = mcpp_lib.h mcpp_out.h

main.lo directive.lo eval.lo expand.lo mbohar.lo support.lo system.lo	\
    : system.H internal.H mcpp_lib.h mcpp_out.h
system.H    :   configed.H

else

bin_PROGRAMS = mcpp
mcpp_SOURCES = system.H configed.H internal.H main.c directive.c eval.c \
    expand.c mbchar.c support.c system.c mcpp_out.h
mcpp_CFLAGS = $(AM_CFLAGS)		## dummy to avoid conflict with MCPP_LIB

main.o directive.o eval.o expand.o mbohar.o support.o system.o    :     \
    system.H internal.H mcpp_out.h
system.H    :   configed.H

endif

if REPLACE_CPP
if GNUC

if MINGW
cc1_PROGRAMS = cc1
cc1_SOURCES = cc1.c
cc1dir = $(bindir)
endif

install-exec-hook:
	@if test x"$(gcc_path)" = x""; then	exit 1; fi
	@$(srcdir)/set_mcpp.sh '$(gcc_path)' $(gcc_maj_ver) $(gcc_min_ver)  \
            '$(cpp_call)' '$(CC)' '$(CXX)' 'x$(CPPFLAGS)' 'x$(EXEEXT)'  \
			'$(LN_S)' '$(inc_dir)' $(host_system) $(Target_Cpu) 		\
			$(target_cc)
uninstall-hook:
	@$(srcdir)/unset_mcpp.sh '$(gcc_path)' $(gcc_maj_ver) $(gcc_min_ver)\
             '$(cpp_call)' '$(CC)' '$(CXX)' 'x$(EXEEXT)' '$(LN_S)'      \
             '$(inc_dir)' $(host_system) $(target_cc)
endif
endif