summaryrefslogtreecommitdiff
path: root/broccoli/Makefile
blob: 329c60c8bd99d04d0ea5be0dabc163f0aec46876 (plain)
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
CC=gcc
CFLAGS = -c -Wall -I/usr/local/include -I/usr/local/include -DBROCCOLI 
LDFLAGS =  -L/usr/local/lib -lbroccoli -pthread

all: midbropasad tests

midbropasad: midbropasad.o broevent.o fifoqueue.o
	$(CC) midbropasad.o broevent.o fifoqueue.o -o midbropasad $(LDFLAGS)

tests: tests.o fifoqueue.o
	$(CC) tests.o fifoqueue.o -o tests

midbropasad.o: midbropasad.c
	$(CC) $(CFLAGS) midbropasad.c

broevent.o: broevent.c
	$(CC) $(CFLAGS) broevent.c

fifoqueue.o: fifoqueue.c
	$(CC) -c -Wall fifoqueue.c

tests.o: tests.c
	$(CC) -c -Wall tests.c

clean:
	rm *.o midbropasad tests