Makefile 390 Bytes
Newer Older
Henry K. Sun's avatar
Henry K. Sun committed
1
2
3
4
5
6
7
8
9
10
11
#
# Commands and arguments
#

CC = gcc
RM = rm

CFLAGS = -Wall -g -std=c99 -pedantic
ASFLAGS = -g


12
all: test
Henry K. Sun's avatar
Henry K. Sun committed
13
14
15
16
17
18
19
20
21


# The simple test program
test: sthread.o queue.o glue.o test.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^


# pseudo-target to clean up
clean:
22
	$(RM) -f *.o core* *~ test
Henry K. Sun's avatar
Henry K. Sun committed
23
24
25
26
27
28
29
30
31
32


.PHONY: all clean


# Dependencies
sthread.c: sthread.h queue.h
queue.c: queue.h sthread.h
test.c: sthread.h