Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ TAGS
*.o
*.lo
*.la
Makefile
Makefile.in
.deps
.libs
build
build.log
23 changes: 23 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
cmake_minimum_required(VERSION 3.5)
project(cim)

# By default, build for release with debug info.
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
"Default build type: RelWithDebInfo" FORCE)
endif()

add_compile_options(-Werror -Wno-unsequenced) # TODO: -Wall

#
# Create config.h.
#
configure_file(config.h.in config.h @ONLY)

add_definitions(-DHAVE_CONFIG_H)

#
# Build subdirectories.
#
add_subdirectory(src)
add_subdirectory(lib)
24 changes: 0 additions & 24 deletions Makefile.am

This file was deleted.

24 changes: 8 additions & 16 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,20 @@ INSTALL file.

The simplest way to compile this package is:

1. `cd' to the directory containing the package's source code and
type `./configure' (or `CFLAGS=-O2 LDFLAGS=-s ./configure',
which is recomended when using GCC) to configure the package
for your system.
1. `cd' to the directory containing the package's source code and
type `cmake -B build' to configure the package for your system.

Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. `cd' to the build directory.

2. Type `make' to compile the package
3. Type `make' to compile the package.

3. Type `make install' to install the package
4. Type `make install' to install the package.

You may want to compile the run-time-system with CFLAGS=-O2, but
have the cim compiler compile produced C-code with CFLAGS=-O0.
have the cim compiler compile produced C-code with CFLAGS=-O0.
This can most easilly be done by the following steps:

1. `cd' to the directory containing the package's source code and
1. `cd' to the directory containing the package's source code and
type `CFLAGS=-O2 ./configure'

2. Type `make' to compile the package.
Expand All @@ -63,7 +60,7 @@ This can most easilly be done by the following steps:
4. type `CFLAGS=-O0 ./configure'

5. type `cd src; make' followed by `make install'

GCC may run out of virtual memory, and therefore you may want to use a
standard C-compiler instead. You can do that by typing `CC=cc
./configure'
Expand Down Expand Up @@ -103,8 +100,3 @@ program into separate compiled modules or use version 2 of cim
instead.

Sverre Hvammen Johansen





262 changes: 0 additions & 262 deletions acinclude.m4

This file was deleted.

Loading