Skip to content

Commit 42be792

Browse files
committed
Simplified the mcpp source code to include only those things required
by Ice. - Removed configure based configuration system. Added config.h which has the correct definitions for Linux, OSX and Windows with visual studio and MINGw. - Removed all tests and other support files. - Removed command line preprocessor. Only the mcpp_lib_main entry point is now supported. - Removed support for all command line options not used by Ice. - Only utf8 encoding is suported. - Ice can be built against this repository if the repository location is provided as MCPP_HOME.
1 parent 2e74d8d commit 42be792

File tree

857 files changed

+1051
-124343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

857 files changed

+1051
-124343
lines changed

.gitignore

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
Makefile
2-
config.log
3-
config.status
41
*.o
5-
*.la
6-
*.lo
7-
src/mcpp
8-
src/.libs
9-
src/config.h
10-
src/stamp-h1
11-
libtool
2+
*.a
3+
*~
4+
*.swp
5+
Debug
6+
Release
7+
*.lib

ChangeLog

Lines changed: 0 additions & 325 deletions
This file was deleted.

ChangeLog.old

Lines changed: 0 additions & 351 deletions
This file was deleted.

INSTALL

Lines changed: 0 additions & 541 deletions
This file was deleted.

INSTALL-jp

Lines changed: 0 additions & 468 deletions
This file was deleted.

Makefile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# **********************************************************************
2+
#
3+
# Copyright (c) 2015 ZeroC, Inc. All rights reserved.
4+
#
5+
# **********************************************************************
6+
7+
CFLAGS += -O -w
8+
9+
UNAME = $(shell uname)
10+
MACHINE = $(shell uname -m)
11+
12+
LIBDIR = lib
13+
14+
ifeq ($(UNAME),Linux)
15+
CFLAGS += -fPIC
16+
17+
ifeq ($(MACHINE),i686)
18+
CFLAGS += -m32
19+
20+
#
21+
# Ubuntu.
22+
#
23+
ifeq ($(shell test -d /usr/lib/i386-linux-gnu && echo 0),0)
24+
LIBDIR = lib/i386-linux-gnu
25+
endif
26+
else
27+
#
28+
# Ubuntu.
29+
#
30+
ifeq ($(shell test -d /usr/lib/x86_64-linux-gnu && echo 0),0)
31+
LIBDIR = lib/x86_64-linux-gnu
32+
endif
33+
34+
#
35+
# Rhel/SLES
36+
#
37+
ifeq ($(shell test -d /usr/lib64 && echo 0),0)
38+
LIBDIR = lib64
39+
endif
40+
endif
41+
endif
42+
43+
#
44+
# The default C compiler (cc) is undefined with MinGW
45+
#
46+
ifneq ($(findstring MINGW,$(UNAME)),)
47+
CC = gcc
48+
endif
49+
50+
OBJS = directive.o eval.o expand.o main.o mbchar.o support.o system.o
51+
52+
$(LIBDIR)/libmcpp.a: $(OBJS)
53+
-mkdir -p $(LIBDIR)
54+
ar rcs $(LIBDIR)/libmcpp.a $(OBJS)
55+
ranlib $(LIBDIR)/libmcpp.a
56+
57+
clean:
58+
rm -f $(OBJS)
59+
rm -rf $(LIBDIR)
60+

Makefile.am

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)