File: Makefile

package info (click to toggle)
eagle-usb 2.1.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,108 kB
  • ctags: 2,612
  • sloc: ansic: 27,560; sh: 5,440; perl: 3,269; xml: 1,079; tcl: 915; makefile: 878
file content (50 lines) | stat: -rw-r--r-- 1,286 bytes parent folder | download
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
#------------------------------------------
# Makefile
#
# Makefile for eaglectrl
#

-include ../../Makefile.common

VERSION=$(shell cat ../../VERSION)


CFLAGS=-O2 -pipe -Wall -pedantic -DLINUX -g -DCONF_DIR="\"$(EU_DIR)\"" -DBIN_DIR="\"$(EU_DSP_DIR)\"" '-DEAGLEUSBVERSION="$(VERSION)"'

ifeq ($(USE_CMVS),1)
CFLAGS+=-DUSE_CMVS
endif

all: eaglectrl

eaglectrl: eaglectrl.c ../eagle-usb.h
	$(CC) $(CFLAGS) $< -o $@

install:
	$(INSTALL) -d $(SBINDIR) && \
	$(INSTALL) -d $(EU_DIR) && \
	$(INSTALL) -m 0755 eaglectrl $(SBINDIR) && \
	$(INSTALL) -m 0755 eaglestat $(SBINDIR) && \
	$(INSTALL) -m 0644 eagle-usb.conf $(EU_DIR)/eagle-usb.conf.template && \
	$(INSTALL) -m 0644 CMVei.txt $(EU_DIR) && \
	$(INSTALL) -m 0644 CMVeiWO.txt $(EU_DIR) && \
	$(INSTALL) -m 0644 CMVepWO.txt $(EU_DIR) && \
	$(INSTALL) -m 0644 CMVepES.txt $(EU_DIR) && \
	$(INSTALL) -m 0644 CMVepFR.txt $(EU_DIR) && \
	$(INSTALL) -m 0644 CMVepIT.txt $(EU_DIR) && \
	$(INSTALL) -m 0644 CMVep.txt $(EU_DIR) 

uninstall:
	rm -f $(SBINDIR)/eaglectrl
	rm -f $(SBINDIR)/eaglestat
	rm -f $(EU_DIR)/eagle-usb.conf.template
	rm -f $(EU_DIR)/CMVei.txt
	rm -f $(EU_DIR)/CMVepES.txt
	rm -f $(EU_DIR)/CMVepFR.txt
	rm -f $(EU_DIR)/CMVepIT.txt
	rm -f $(EU_DIR)/CMVep.txt

clean:
	rm -f eaglectrl

.PHONY: all install uninstall clean