diff --git a/.gitignore b/.gitignore index 378eac2..2ee76b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -build +/ddate diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 812572e..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -cmake_minimum_required(VERSION 2.8) - -project(ddate C) - -add_executable(ddate ddate.c) - -add_custom_command( OUTPUT ddate.1.gz - COMMAND gzip -c -9 ${CMAKE_SOURCE_DIR}/ddate.1 >> ${CMAKE_CURRENT_BINARY_DIR}/ddate.1.gz - DEPENDS ${CMAKE_SOURCE_DIR}/ddate.1 - COMMENT "gzipping manpage" - ) - -add_custom_target( manpage ALL - DEPENDS ddate.1.gz - ) - -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ddate.1.gz DESTINATION share/man/man1) -install(TARGETS ddate DESTINATION bin) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..151b33d --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CFLAGS += \ + -Wall -Wextra -g -ggdb \ + -std=c11 -O2 -fPIE -march=native -D_FORTIFY_SOURCE=2 \ + -fstack-protector-strong --param=ssp-buffer-size=1 -flto \ + -fsanitize=undefined + +ifeq "$(CC)" "clang" +CFLAGS += -Weverything -fno-diagnostics-color -fsanitize-trap=undefined +endif + +LDFLAGS += -Wl,-z,relro,-z,now,--build-id -pie + +all: ddate + +clean: + rm -f ddate + +.PHONY: all clean diff --git a/README.org b/README.org index 6a14e38..56fb5ba 100644 --- a/README.org +++ b/README.org @@ -10,11 +10,8 @@ from the AUR. ** BUILDING #+begin_src sh - mkdir build - cd build - cmake .. make - make install + make install #+end_src ** SEASONS - Chaos :: Patron Apostle Hung Mung @@ -26,18 +23,18 @@ The DAYS OF THE WEEK are named from the five basic elements: SWEET, BOOM, PUNGENT, PRICKLE, and ORANGE. - 1. Sweetmorn - 2. Boomtime - 3. Pungenday - 4. Prickle-Prickle - 5. Setting Orange + 1. Sweetmorn + 2. Boomtime + 3. Pungenday + 4. Prickle-Prickle + 5. Setting Orange *** HOLIDAYS -**** Apostle Holydays - 1. Mungday - 2. Mojoday - 3. Syaday - 4. Zaraday - 5. Maladay +**** Apostle Holydays + 1. Mungday + 2. Mojoday + 3. Syaday + 4. Zaraday + 5. Maladay Each occurs on the 5th day of the Season. **** Seasons Holydays