Skip to content

Commit

Permalink
Remove Makefile, add Makefile.am and CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedld authored and ckerr committed Apr 28, 2022
1 parent 1112308 commit 0155855
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 2.8)
project(dht C)

add_library(${PROJECT_NAME} STATIC
dht.c
)

install(TARGETS ${PROJECT_NAME} DESTINATION lib)
install(FILES dht.h DESTINATION include/dht)
9 changes: 0 additions & 9 deletions Makefile

This file was deleted.

11 changes: 11 additions & 0 deletions Makefile.am
@@ -0,0 +1,11 @@
AM_CFLAGS = @PTHREAD_CFLAGS@

noinst_LIBRARIES = libdht.a
libdht_a_SOURCES = dht.c
libdht_a_DEPENDENCIES = $(builddir)/include/dht
noinst_HEADERS = dht.h
EXTRA_DIST = CHANGES CMakeLists.txt dht-example.c LICENCE README

$(builddir)/include/dht:
$(MKDIR_P) $(builddir)/include
(cd $(builddir)/include && $(LN_S) $(abs_srcdir) dht)

0 comments on commit 0155855

Please sign in to comment.