Subversion Repositories shark

Rev

Rev 3 | Rev 1618 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
# Standard library for X/COFF applications
2
# Makefile for GNU MAKE & GCC 2.8.0
3
 
4
ifndef BASE
5
	BASE = ..
6
	BASEDOS = ..
7
endif
8
 
9
include $(BASE)/config.mk
10
 
11
all: mbdemo.xtn timetest.xtn eventdem.xtn vmdemo.xtn \
12
	ctxswdem.xtn scheddem.xtn cpudemo.xtn biosdemo.xtn \
40 pj 13
	asdemo.xtn kerndem.xtn
2 pj 14
 
15
%.ftp: %.xtn
16
	ncftpput -u ll -p example thorin . $<
17
%.flp: %.xtn
18
	mcopy $< a:
19
 
20
clean :
21
	$(RM) *.o
22
	$(RM) *.err
23
	$(RM) *.xtn
24
 
25
#
26
# Demo
27
#
28
 
40 pj 29
kerndem.xtn: syscalls.o $(LIB_PATH)/libhc.a $(LIB_PATH)/libhm.a $(LIB_PATH)/libhx.a $(LIB_PATH)/libkl.a
30
	$(LD) $(LINK_OPT) $(LIB_PATH)x0.o syscalls.o --start-group -lhc -lhm -lhx -lkl -lcons --end-group -o $@
31
 
32
 
2 pj 33
%.xtn : %.o $(LIB_PATH)/libhc.a $(LIB_PATH)/libhm.a $(LIB_PATH)/libhx.a $(LIB_PATH)/libkl.a
40 pj 34
	$(LD) $(LINK_OPT) $(LIB_PATH)x0.o $< --start-group -lhc -lhm -lhx -lkl -lcons --end-group -o $@
2 pj 35
#       $(LD) $(LINK_OPT) $(LIB_PATH)x0.o $< --start-group -lhc -lhx -lkl --end-group -o $@