Last change
on this file since 190 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 | ################################################################################ |
---|
4 | CC=gcc |
---|
5 | OPTS=-std=gnu99 -pedantic -Wall -ggdb |
---|
6 | INC:=-I../trunk/include -I../trunk/src -I/usr/local/include |
---|
7 | LIB=-L/usr/local/lib -lm -lpthread |
---|
8 | |
---|
9 | REGFI_THREADTEST=regfi-threadtest |
---|
10 | OBJ=$(wildcard ../trunk/lib/*.o) |
---|
11 | FILES=$(REGFI_THREADTEST) |
---|
12 | |
---|
13 | all: deps $(FILES) |
---|
14 | |
---|
15 | deps: |
---|
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 | |
---|
22 | regfi-threadtest.o: regfi-threadtest.c |
---|
23 | $(CC) $(CFLAGS) $(OPTS) $(INC) -c -o $@ regfi-threadtest.c |
---|
24 | |
---|
25 | clean: |
---|
26 | rm -f *.o $(FILES) |
---|
Note: See
TracBrowser
for help on using the repository browser.