From 47001bfee5ec4b4ddddee686e4552382567268a9 Mon Sep 17 00:00:00 2001 From: kevinlekiller Date: Fri, 4 Mar 2022 20:48:16 -0500 Subject: [PATCH] Remove math.h not required anymore with #34 --- CMakeLists.txt | 1 - amdctl.c | 1 - makefile | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 13d922c..e4d38ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,4 +2,3 @@ cmake_minimum_required(VERSION 2.8.12) project(amdctl) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -std=c99") add_executable(amdctl amdctl.c) -target_link_libraries(amdctl m) diff --git a/amdctl.c b/amdctl.c index 007153c..bd32e82 100644 --- a/amdctl.c +++ b/amdctl.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) diff --git a/makefile b/makefile index 2e67307..5ca6bab 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -pedantic -Wextra -std=c99 -O2 -lm +CFLAGS=-Wall -pedantic -Wextra -std=c99 -O2 all: amdctl %.o: %.c - $(CC) -c -o $@ $< $(CFLAGS) + $(CC) -c -o $@ $< $(CFLAGS)