blob: 4d2c9698beb38f02130a4db41dd8ab1b5bf0d4e1 (
plain)
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
|
EXT = @EXT@
DEFS = @DEFS@
CC = @CC@
LD = @LD@
LFLAGS = @LFLAGS@
INCLUDE = @INCLUDE@
STRIPFLAGS = @STRIPFLAGS@
PREFIX = @prefix@
INSTALL_PREFIX=$(PREFIX)
.SUFFIXES: .$(EXT)
PDCFLAGS = -g -O2 $(DEFS) $(LFLAGS)
CFLAGS = -g -O2 $(DEFS)
LIBS = -lm -lc -lSDL
SOURCES = rawjoystick.c
TARGETS = $(SOURCES:.c=.$(EXT))
all: $(TARGETS)
rawhid: $(TARGETS)
cc -c $(CFLAGS) -DPD rawhid.c
$(LD) $(LFLAGS) -o rawhid.$(EXT) *.o $(LIBS)
strip @STRIPFLAGS@ rawhid.$(EXT)
clean::
-rm *.$(EXT) *.o *~
distclean: clean
-rm -f config.cache config.log config.status Makefile conf*.lnk
-rm -Rf autom4te.cache autoscan.log configure.scan
.c.o:
$(CC) -c -o $@ $(CFLAGS) -DPD $*.c
# cp $@ $*_stat.o
.o.$(EXT):
$(CC) -o $@ $(PDCFLAGS) -DPD $*.o
install::
install -d $(INSTALL_PREFIX)/pd/externs
install -m 644 *.$(EXT) $(INSTALL_PREFIX)/pd/extra
-install -m 644 rawhid.$(EXT) $(INSTALL_PREFIX)/pd/extra
install -m 644 doc/*.pd $(INSTALL_PREFIX)/pd/doc/5.reference
dist: distclean
(cd ..;tar czvf $(TARNAME) rawhid)
|