Makefile 536 Bytes
Newer Older
1
2
3
CC = gcc
CFLAGS = -g

Sven Robertz's avatar
Sven Robertz committed
4
5
6
liblabcomm.a : labcomm.o labcomm_fd_reader_writer.o labcomm_udp_reader_writer.o labcomm_thr_reader_writer.o ethaddr.o ThrottleDrv/ethernet_drv.o ThrottleDrv/throttle_drv.o
#	ar -r liblabcomm.a labcomm.o labcomm_fd_reader_writer.o ethaddr.o
	ar -r liblabcomm.a $^
Sven Robertz's avatar
Sven Robertz committed
7
8
9
10

labcomm.o : labcomm.c labcomm.h  labcomm_private.h

labcomm_fd_reader_writer.o : labcomm_fd_reader_writer.c  labcomm_fd_reader_writer.h  labcomm.h  labcomm_private.h
11
12

ethaddr.o: ethaddr.c
Sven Robertz's avatar
Sven Robertz committed
13

Sven Robertz's avatar
Sven Robertz committed
14
15
%o: %c %h

Sven Robertz's avatar
Sven Robertz committed
16
17
18
19
20
clean:
	rm *.o

distclean: clean
	rm liblabcomm.a