Makefile 659 Bytes
Newer Older
1
CC = gcc
2
CFLAGS = -g -I .
3

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

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
13
14

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

Sven Robertz's avatar
Sven Robertz committed
16
17
%o: %c %h

Sven Robertz's avatar
Sven Robertz committed
18
clean:
19
	rm *.o experimental/*.o experimental/ThrottleDrv/*.o
Sven Robertz's avatar
Sven Robertz committed
20
21
22

distclean: clean
	rm liblabcomm.a