File: Makefile

package info (click to toggle)
slbreflex 2.2.0-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 200 kB
  • ctags: 200
  • sloc: ansic: 1,523; makefile: 79; sh: 73
file content (36 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (3)
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
# Makefile for Todos Argos Mini
# Linux Serial Driver
# Implementation

CC   = gcc -DCPU_ICAP_PC=1
LD   = ld
OBJS = serial.o ifdhandler.o ctapi.o AdmHndlr.o T1Hndlr.o
LIBN = libslb_rf60.so
LINKER = gcc -shared -Wl,-soname,$(LIBN) -o $(LIBN)

all: lib test

clean:
	rm -f *.o *.so test

lib: $(OBJS)
#	$(LD) -shared $(OBJS) -o $(LIBN)
	$(LINKER) $(OBJS)

test: test.c $(OBJS)
	$(CC) -o test test.c $(OBJS)

ifdhandler.o: ifdhandler.h ifdhandler.c
	$(CC) -c ifdhandler.c

T1Hndlr.o: T1Hndlr.h T1Hndlr.c
	$(CC) -c T1Hndlr.c

AdmHndlr.o: AdmHndlr.h AdmHndlr.c
	$(CC) -c AdmHndlr.c

ctapi.o: ctapi.h ctapi.c
	$(CC) -c ctapi.c

serial.o: serial.h serial.c
	$(CC) -c serial.c