diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-03 20:52:56 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-03 20:52:56 +0000 |
commit | 1d0e3619a4acd61f8f84b510d8fac499eb2621b9 (patch) | |
tree | c745c4042edabdebb54252591f769b44e5d54dc2 /include/makeinclude/platform_vxworks5.x_g++.GNU | |
parent | e4241733f8c1bb93f82e57a23a61c1fd81ebc91f (diff) | |
download | ATCD-1d0e3619a4acd61f8f84b510d8fac499eb2621b9.tar.gz |
added support for shared lib builds
Diffstat (limited to 'include/makeinclude/platform_vxworks5.x_g++.GNU')
-rw-r--r-- | include/makeinclude/platform_vxworks5.x_g++.GNU | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/include/makeinclude/platform_vxworks5.x_g++.GNU b/include/makeinclude/platform_vxworks5.x_g++.GNU index eb07fff3182..2162c426889 100644 --- a/include/makeinclude/platform_vxworks5.x_g++.GNU +++ b/include/makeinclude/platform_vxworks5.x_g++.GNU @@ -115,12 +115,33 @@ else # ! x86-win32 PIPE_OPT = -pipe endif # ! x86-win32 +ifeq ($(shared_libs),1) + SHARED_LIBS = 1 +endif +ifeq ($(shared_libs_only),1) + SHARED_LIBS = 1 +endif + +ifeq ($(SHARED_LIBS),1) + ACELIB = -L./ + #### There's no difference between non-shared and shared object code. + VSHDIR = .obj/ +endif # shared_libs + +ifeq ($(static_libs),1) + AR = ar$(TOOLENV) + ARFLAGS = rv +else # ! static_libs + AR = echo + ARFLAGS = "build shared lib only" +endif # ! static_libs CC = cc$(TOOLENV) CFLAGS += -D_REENTRANT -ansi -fno-builtin -fno-defer-pop \ -fvolatile -nostdinc -nostdlib $(PIPE_OPT) -Wall CCFLAGS += $(CFLAGS) DCFLAGS += -g +DLD = $(LD) INCLDIRS += -I$(WIND_BASE)/target/h LD = $(PERL_PATH) $(ACE_ROOT)/bin/ace_ld -c \ $(ACE_QUOTE)$(COMPILE.c) -traditional$(ACE_QUOTE) \ @@ -130,8 +151,6 @@ LDFLAGS += -X -r #### the i386 family. And -O2 causes some compilation failures. OCFLAGS += -O PIC = -AR = ar$(TOOLENV) -ARFLAGS = rv #### ld can't handle INCLDIRS, so override LINK definitions. |