source: test/Makefile @ 218

Last change on this file since 218 was 180, checked in by tim, 15 years ago

Added locks to make transactions on REGFI_FILE objects thread safe

Added initial version of a threading smoke test

File size: 695 bytes
Line 
1# $Id: Makefile 143 2009-02-13 03:24:27Z tim $
2
3################################################################################
4CC=gcc
5OPTS=-std=gnu99 -pedantic -Wall -ggdb
6INC:=-I../trunk/include -I../trunk/src -I/usr/local/include
7LIB=-L/usr/local/lib -lm -lpthread
8
9REGFI_THREADTEST=regfi-threadtest
10OBJ=$(wildcard ../trunk/lib/*.o)
11FILES=$(REGFI_THREADTEST)
12
13all: deps $(FILES)
14
15deps:
16        cd ../trunk && $(MAKE) clean
17        cd ../trunk && $(MAKE) lib
18
19$(REGFI_THREADTEST): regfi-threadtest.o
20        $(CC) $(CFLAGS) $(OPTS) $(LIB) -o $@ regfi-threadtest.o $(OBJ) $(EXTRA_OBJ)
21
22regfi-threadtest.o: regfi-threadtest.c
23        $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ regfi-threadtest.c
24
25clean:
26        rm -f *.o $(FILES)
Note: See TracBrowser for help on using the repository browser.