From b4d5f99b51b732faf90c11c3c234ad624920d821 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 25 Jan 2018 09:07:05 +0100 Subject: [PATCH] moved source file into subdir --- CMakeLists.txt | 25 +++++++++++----------- config.h => src/config.h | 0 dist-maketable.c => src/dist-maketable.c | 0 dist-maketable.h => src/dist-maketable.h | 0 dist.c => src/dist.c | 0 emulate.c => src/emulate.c | 0 hist.c => src/hist.c | 0 hist.h => src/hist.h | 0 main.c => src/main.c | 0 mark.c => src/mark.c | 0 netlink-private.h => src/netlink-private.h | 0 probe.c => src/probe.c | 0 tc.c => src/tc.c | 0 tc.h => src/tc.h | 0 timing.c => src/timing.c | 0 timing.h => src/timing.h | 0 ts.c => src/ts.c | 0 ts.h => src/ts.h | 0 utils.c => src/utils.c | 0 utils.h => src/utils.h | 0 20 files changed, 13 insertions(+), 12 deletions(-) rename config.h => src/config.h (100%) rename dist-maketable.c => src/dist-maketable.c (100%) rename dist-maketable.h => src/dist-maketable.h (100%) rename dist.c => src/dist.c (100%) rename emulate.c => src/emulate.c (100%) rename hist.c => src/hist.c (100%) rename hist.h => src/hist.h (100%) rename main.c => src/main.c (100%) rename mark.c => src/mark.c (100%) rename netlink-private.h => src/netlink-private.h (100%) rename probe.c => src/probe.c (100%) rename tc.c => src/tc.c (100%) rename tc.h => src/tc.h (100%) rename timing.c => src/timing.c (100%) rename timing.h => src/timing.h (100%) rename ts.c => src/ts.c (100%) rename ts.h => src/ts.h (100%) rename utils.c => src/utils.c (100%) rename utils.h => src/utils.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2aef5a8..d869323 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,24 +4,25 @@ project(netem C) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c99") -add_executable(netem main.c - probe.c - emulate.c - timing.c - hist.c - utils.c - ts.c - tc.c - dist.c - dist-maketable.c +add_executable(netem + src/main.c + src/probe.c + src/emulate.c + src/timing.c + src/hist.c + src/utils.c + src/ts.c + src/tc.c + src/dist.c + src/dist-maketable.c ) target_link_libraries(netem PUBLIC "-lrt -lnl-3 -lnl-route-3 -lm") target_include_directories(netem PUBLIC "/usr/include/libnl3") -add_library(mark mark.c) +add_library(mark src/mark.c) -install(TARGETS netem mark +install(TARGETS netem mark RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib/static) diff --git a/config.h b/src/config.h similarity index 100% rename from config.h rename to src/config.h diff --git a/dist-maketable.c b/src/dist-maketable.c similarity index 100% rename from dist-maketable.c rename to src/dist-maketable.c diff --git a/dist-maketable.h b/src/dist-maketable.h similarity index 100% rename from dist-maketable.h rename to src/dist-maketable.h diff --git a/dist.c b/src/dist.c similarity index 100% rename from dist.c rename to src/dist.c diff --git a/emulate.c b/src/emulate.c similarity index 100% rename from emulate.c rename to src/emulate.c diff --git a/hist.c b/src/hist.c similarity index 100% rename from hist.c rename to src/hist.c diff --git a/hist.h b/src/hist.h similarity index 100% rename from hist.h rename to src/hist.h diff --git a/main.c b/src/main.c similarity index 100% rename from main.c rename to src/main.c diff --git a/mark.c b/src/mark.c similarity index 100% rename from mark.c rename to src/mark.c diff --git a/netlink-private.h b/src/netlink-private.h similarity index 100% rename from netlink-private.h rename to src/netlink-private.h diff --git a/probe.c b/src/probe.c similarity index 100% rename from probe.c rename to src/probe.c diff --git a/tc.c b/src/tc.c similarity index 100% rename from tc.c rename to src/tc.c diff --git a/tc.h b/src/tc.h similarity index 100% rename from tc.h rename to src/tc.h diff --git a/timing.c b/src/timing.c similarity index 100% rename from timing.c rename to src/timing.c diff --git a/timing.h b/src/timing.h similarity index 100% rename from timing.h rename to src/timing.h diff --git a/ts.c b/src/ts.c similarity index 100% rename from ts.c rename to src/ts.c diff --git a/ts.h b/src/ts.h similarity index 100% rename from ts.h rename to src/ts.h diff --git a/utils.c b/src/utils.c similarity index 100% rename from utils.c rename to src/utils.c diff --git a/utils.h b/src/utils.h similarity index 100% rename from utils.h rename to src/utils.h