File: Makefile

package info (click to toggle)
macfanctld 0.6+repack1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd, stretch
  • size: 148 kB
  • ctags: 75
  • sloc: ansic: 759; sh: 151; makefile: 19
file content (30 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (2)
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
#
# Makefile for macfanctl
#
# Mikael Strom, August 2010
#

CC = gcc
#CFLAGS = -Wall
SBIN_DIR = $(DESTDIR)/usr/sbin
ETC_DIR = $(DESTDIR)/etc

all: macfanctld

macfanctld: macfanctl.c control.c config.c control.h config.h
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) macfanctl.c control.c config.c -o macfanctld 

clean:
	dh_testdir
	dh_clean
	rm -rf *.o macfanctld

install:
	dh_installdirs
	chmod +x macfanctld
	cp macfanctld $(SBIN_DIR)
	cp macfanctl.conf $(ETC_DIR)

uninstall:
	rm $(SBIN_DIR)/macfanctld $(INITD_DIR)/macfanctl $(ETC_DIR)/macfanctl.conf