# This Makefile builds user progrmas listed under
# PROGS to run on the 15-410 kernel
# kernel/user
# Do not edit this file

include ../user.mk
include ../410_tests/410tests.mk

MAKE = make
CC = gcc
CFLAGS = -nostdinc -fno-strict-aliasing -fno-builtin -Wall -gstabs+ -Werror
LDFLAGS = -static --entry=_main -Ttext 1000000
LPATH = ./lib
INCLUDES = -I./ -I./inc -I./lib/inc
LIBS = -lthread -lmalloc -lstdio -lstdlib -lstring -lsyscall -lrand

PROGS = shell $(UPROGS) $(TPROGS)

all: $(PROGS)
	./exec2obj $(PROGS)
	cp -f user_apps.c ../..

clean:
	rm -fr *.o *~ $(PROGS) $(TPROGS) *.d *.a user_apps.c
