forked from kost/dcled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (33 loc) · 976 Bytes
/
makefile
File metadata and controls
45 lines (33 loc) · 976 Bytes
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
# This file is part of dcled, written on Sun Jan 4 00:18:16 PST 2009
# Jeff Jahr <malakai@jeffrika.com> -jsj
# INSTALLDIR is where the binaries get installed
INSTALLDIR=/usr/local/bin
DCLEDVERSION="2.2"
DIST=dcled-$(DCLEDVERSION)
LIBUSB_CFLAGS=-I/usr/include/libusb-1.0
LIBUSB_LIBS=-lusb-1.0
# If gcc isnt your compiler, change it here.
CC=gcc
CFLAGS= -g -O3 -Wunused-variable -DDCLEDVERSION='$(DCLEDVERSION)' ${LIBUSB_CFLAGS}
LDFLAGS= -g -lm ${LIBUSB_LIBS}
# You probaby dont need to change anything below this line...
# List of the various files
CFILES= dcled.c
OFILES= dcled.o
# build everything
all: dcled
dcled: dcled.o
$(CC) dcled.o -o dcled $(LDFLAGS)
# rebuild the ctags
ctags: $(CFILES)
ctags -d -I -l c -t $(CFILES)
# remove the object files
clean:
rm $(OFILES) dcled
# copy stuff into the install directory
install:
mkdir -p $(INSTALLDIR)
cp dcled $(INSTALLDIR)
# ...and now the dependencies.
dcled.o : dcled.c
$(CC) -c $(CFLAGS) dcled.c