Makefile 364 Bytes
Newer Older
1

2 3
hostprogs-y	:= mk_sc
always		:= $(hostprogs-y) mk_thread
4
targets		:= mk_thread_kern.o mk_thread_user.o
Kai Germaschewski's avatar
Kai Germaschewski committed
5 6

mk_sc-objs	:= mk_sc.o
7

Kai Germaschewski's avatar
Kai Germaschewski committed
8 9
$(obj)/mk_thread : $(obj)/mk_thread_kern.o $(obj)/mk_thread_user.o
	$(CC) $(CFLAGS) -o $@ $^
10

Kai Germaschewski's avatar
Kai Germaschewski committed
11
$(obj)/mk_thread_user.o : $(src)/mk_thread_user.c
12 13 14
	$(CC) $(USER_CFLAGS) -c -o $@ $<

clean :
15
	$(RM) -f $(build-targets)
16 17

archmrproper : clean