-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
59 lines (43 loc) · 1.28 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Written by Salonia Matteo on 17/05/2021
# Which compiler to use
CC = gcc
# LINKER: choose a linker to use; can be bfd, gold, lld
# comment to use the default linker, uncomment to use a custom linker
#LINKER = -fuse-ld=gold
# CSTD: which C revision to use
CSTD = -std=c99
# Optimizations. Can be -O0, -O1, -O2, -O3, -Os, -Ofast
OPTS = -Ofast
# CPU-Specific Optimizations
CPUOPTS = -march=native -mtune=native
# LDFLAGS: linker flags
AM_LDFLAGS =
AM_LDFLAGS += -lforms
AM_LDFLAGS += -lpthread
# CFLAGS: additional compiler flags
AM_CFLAGS = -Wall $(CSTD) $(LINKER) $(OPTS) $(CPUOPTS) $(AM_LDFLAGS)
# Executable name
bin_PROGRAMS = tp-xfan
# Source code location
tp_xfan_SOURCES = src/tp-xfan.c
# Data installation directory
docdir = /usr/local/share/tp-xfan
# Various Documentation & Data files
doc_DATA = src/apply.sh
# Clean the project directory
cleandir:
make mostlyclean
make clean
make distclean
rm -rf autom4te.cache aclocal.m4 *.tar.gz
version:
@echo ${VERSION}
info:
@echo "${PACKAGE_STRING} made by ${AUTHOR}."
@echo "Report any bugs to ${PACKAGE_BUGREPORT}."
@echo "Homepage: ${PACKAGE_URL}"
@echo "Support this project: ${PACKAGE_DONATE}"
install-data: install-docDATA
chmod +x ${docdir}/apply.sh
# Alias "uninstall-docDATA" to "uninstall-doc"
uninstall-doc: uninstall-docDATA