-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.save.1
47 lines (36 loc) · 1.05 KB
/
makefile.save.1
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
TODIR=/usr/local/bin
#LINK=-lljacklm -lLabJackM -lm
LINK=-lLabJackM -lm
# The LCONFIG object file
lconfig.o: lconfig.c lconfig.h
gcc -c lconfig.c -o lconfig.o
# The Binaries...
#
monitor.bin: monitor.c ldisplay.h lconfig.o lgas.h psat.h
gcc lconfig.o monitor.c -lljacklm $(LINK) -o monitor.bin
test.bin: lconfig.o test.c
gcc test.c lconfig.o $(LINK) -o test.bin
ivchar.bin: lconfig.o ivchar.c
gcc lconfig.o ivchar.c $(LINK) -o ivchar.bin
chmod +x ivchar.bin
drun.bin: lconfig.o drun.c
echo "Compiling drun.bin"
gcc lconfig.o drun.c $(LINK) -o drun.bin
chmod +x drun.bin
dburst.bin: lconfig.o dburst.c
echo "Compiling dburst.bin"
gcc lconfig.o dburst.c $(LINK) -o dburst.bin
chmod +x dburst.bin
gasmon.bin: gasmon.c ldisplay.h lgas.h
echo "Compiling gasmon.bin"
gcc -Wall gasmon.c -lljacklm -o gasmon.bin
chmod +x gasmon
test.bin: lconfig.o test.c
chmod +x test
clean:
rm lconfig.o
rm drun.bin dburst.bin gasmon.bin
install: gasmon.bin dburst.bin drun.bin
cp gasmon.bin "$(TODIR)/gasmon"
cp drun.bin "$(TODIR)/drun"
cp dburst.bin "$(TODIR)/dburst