-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.orig
56 lines (43 loc) · 1.74 KB
/
Makefile.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Makefile for the PortOS project
# the target that is built when you run "make" with no arguments:
default: all
# the targets that are built when you run "make all"
# targets are built from the target name followed by ".c". For example, to
# build "sieve", this Makefile will compile "sieve.c", along with all of the
# necessary PortOS code.
#
# this would be a good place to add your tests
all: test1 test2 test3 buffer sieve alarmtest queuetest multilevelqueuetest alarmthreadtest
# running "make clean" will remove all files ignored by git. To ignore more
# files, you should add them to the file .gitignore
clean:
git clean -fdX
################################################################################
# Everything below this line can be safely ignored.
CC = gcc
CFLAGS = -mno-red-zone -fno-omit-frame-pointer -g -O0 -I. \
-Wdeclaration-after-statement -Wall -Werror
LFLAGS = -lrt -pthread -g
OBJ = \
minithread.o \
interrupts.o \
machineprimitives.o \
machineprimitives_x86_64.o \
machineprimitives_x86_64_asm.o \
random.o \
alarm.o \
queue.o \
synch.o \
sortedlist.o \
multilevel_queue.o
%: %.o start.o end.o $(OBJ) $(SYSTEMOBJ)
$(CC) $(LIB) -o $@ start.o $(filter-out start.o end.o $(SYSTEMOBJ), $^) end.o $(SYSTEMOBJ) $(LFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $<
machineprimitives_x86_64_asm.o: machineprimitives_x86_64_asm.S
$(CC) -c machineprimitives_x86_64_asm.S -o machineprimitives_x86_64_asm.o
.depend:
gcc -MM *.c > .depend
.SUFFIXES:
.PHONY: default all clean
include .depend