diff options
author | Robert Gustafsson <robg@student.chalmers.se> | 2017-10-02 20:13:07 +0200 |
---|---|---|
committer | Andreas Lindhé <andreas@lindhe.io> | 2017-10-09 12:14:35 +0200 |
commit | 1df374c02ae16e364cfa9bfab2aa4e7f8e52005e (patch) | |
tree | 9473a4c6b4fb3ec1e8e1b4c9e0e69149e2330baf /broccoli/Makefile | |
parent | 9749f352e1f65ce96c4a307d80459f7441903388 (diff) | |
download | midbro-1df374c02ae16e364cfa9bfab2aa4e7f8e52005e.tar.gz midbro-1df374c02ae16e364cfa9bfab2aa4e7f8e52005e.tar.bz2 |
Add some basic unit tests
Diffstat (limited to 'broccoli/Makefile')
-rw-r--r-- | broccoli/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/broccoli/Makefile b/broccoli/Makefile index d6e2a37..329c60c 100644 --- a/broccoli/Makefile +++ b/broccoli/Makefile @@ -2,11 +2,14 @@ CC=gcc CFLAGS = -c -Wall -I/usr/local/include -I/usr/local/include -DBROCCOLI LDFLAGS = -L/usr/local/lib -lbroccoli -pthread -all: midbropasad +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 @@ -15,5 +18,9 @@ broevent.o: broevent.c fifoqueue.o: fifoqueue.c $(CC) -c -Wall fifoqueue.c + +tests.o: tests.c + $(CC) -c -Wall tests.c + clean: - rm *.o midbropasad + rm *.o midbropasad tests |