2009-09-21 16:53:53 +02:00
|
|
|
# Makefile for the tests
|
|
|
|
|
|
|
|
CC = exec cc
|
2012-09-08 17:25:00 +02:00
|
|
|
CFLAGS = -Wall -D_MINIX -D_POSIX_SOURCE -D_NETBSD_SOURCE=1 -I../lib/
|
2009-09-21 16:53:53 +02:00
|
|
|
|
|
|
|
PROG = semop01 semop02 semop03 semop04 semop05
|
|
|
|
|
|
|
|
all: $(PROG)
|
|
|
|
|
2012-09-08 17:25:00 +02:00
|
|
|
$(PROG): ../libipc.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $@.c ../libipc.a
|
2009-09-21 16:53:53 +02:00
|
|
|
|
|
|
|
clean:
|
2010-05-12 18:28:54 +02:00
|
|
|
rm -f *.o $(PROG)
|
2009-09-21 16:53:53 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
sh ./test.sh
|
|
|
|
|
|
|
|
semop01: semop01.c
|
|
|
|
semop02: semop02.c
|
|
|
|
semop03: semop03.c
|
|
|
|
semop04: semop04.c
|
|
|
|
semop05: semop05.c
|
|
|
|
|