Makefile 652 Bytes
Newer Older
1 2
SPEC_SW ?= $(shell readlink -f ~/wr-repos/spec-sw)
ETHERBONE ?= $(shell readlink -f ~/wr-repos/etherbone-core/api)
3

4
OBJS = fdelay_lib.o i2c_master.o onewire.o fdelay_bus.o fdelay_dmtd_calibration.o sveclib/sveclib.o sveclib/libvmebus.o speclib/speclib.o
5

6
CFLAGS = -I../include -g -Imini_bone -Ispec/tools -Isveclib -I.
7

8 9 10 11
#ifeq ($(SPEC_SW),)
#throw_error:
#	@echo "SPEC software package location environment variable is not set. Can't compile :("
#endif
12

13
all:	lib
14

15 16 17
#spec:	
#		ln -s $(SPEC_SW) spec
#		ln -s $(ETHERBONE) etherbone
18

19
lib:	$(OBJS)
20
		gcc -shared -o libfinedelay.so $(OBJS) 
21
		ar rc libfinedelay.a $(OBJS)
22

23
clean:	
24
		rm -f *.o libfinedelay.so