Makefile
823 Bytes
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
#!smake -k
#
# Makefile for makefat application
#
#
TOOLROOT =
PRDEPTH = ../../..
include $(ROOT)/usr/include/make/PRdefs
CONVERTOBJECTS = $(ROOT)/usr/lib/PR/convert.o $(ROOT)/usr/lib/PR/table.o
OPTIMIZER = -g
TARGETS = makefat
HFILES = sub.h
CODEFILES = makefat.c sub.c
CODEOBJECTS = $(CODEFILES:.c=.o)
OBJECTS = $(CODEOBJECTS) $(CONVERTOBJECTS)
LCINCS = -I. -I$(ROOT)/usr/include/PR -I$(ROOT)/usr/include
LCOPTS = -fullwarn -wlint,-f \
-woff 813,819,822,826,827,852 \
-G 0 -Xcpluscomm
LDIRT = $(APP) $(TARGETS)
LDFLAGS = $(MKDEPOPT) -L$(ROOT)/lib -L$(ROOT)/usr/lib -L$(ROOT)/usr/PR
default: $(TARGETS)
include $(COMMONRULES)
install: default
$(INSTALL) -m 444 -F /usr/src/PR/demos/reboot/makefat \
Makefile $(CODEFILES) $(HFILES)
$(TARGETS): $(OBJECTS)
$(CCF) $(OBJECTS) $(LDFLAGS) -o $@