Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
42 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
#C_OPT += -DPROFILE
12
#ASM_OPT += -DPROFILE
13
 
14
OBJS = cons1.o \
15
	cons2.o \
16
	cprintf.o \
17
	message.o
18
 
19
.PHONY : clean allclean info install
20
 
21
info :
22
	@echo "OSLib Makefile"
23
	@echo "Chose: all, install, clean"
24
 
25
all : libcons.a
26
 
27
install : libcons.a $(LIB_DIR)
28
	$(CP) libcons.a $(LIB_DIR)
29
 
30
$(LIB_DIR) :
31
	$(MKDIR) $(LIB_DIR)
32
 
33
clean :
34
	$(RM) *.o
35
	$(RM) *.err
36
	$(RM) libcons.a
37
 
38
allclean :
39
	echo # XTN Library dependencies > deps
40
	$(RM) $(LIB_PATH)libcons.a
41
 
42
deps: $(OBJS:.o=.c)
43
	$(CC) $(C_OPT) -M $(OBJS:.o=.c) > deps
44
 
45
#
46
# The library!!
47
#
48
libcons.a : $(OBJS)
49
	$(AR) rs libcons.a $(OBJS)
50
 
51
ifeq (deps,$(wildcard deps))
52
include deps
53
endif