build: temporary revert to autotools (#174)

As long as cmake doesn't generate suitable deb packages, we need to
switch back :(
This commit is contained in:
Stefan Wahren
2020-07-19 12:53:59 +02:00
parent f498cf1a37
commit 107d44b7e9
23 changed files with 399 additions and 562 deletions

25
Makefile-static Normal file
View File

@ -0,0 +1,25 @@
# Copyright (c) 2010
# Robert Johansson
# Raditex AB.
# All rights reserved.
LIB = libmbus.so
CFLAGS = -Wall -W -g -fPIC -I.
HEADERS = mbus.h mbus-protocol.h
OBJS = mbus.o mbus-protocol.o
$(LIB): $(OBJS)
gcc -shared -o $(LIB) $(OBJS)
all: $(LIB)
clean:
rm -rf *.o *core core $(LIB)
test:
(cd test && make)
install: all
cp $(LIB) /usr/local/freescada/lib
cp $(HEADERS) /usr/local/freescada/include