1 #######################################
2 # define local information first
5 INCLUDES = -I$(TOP)/include -I$(TOP)/src -I. -I-
6 LOCAL_LIB = $(TOP)/lib/libstdClib.a
8 ########################################
10 include $(TOP)/make.proj
12 ########################################
14 SRCS = $(fopenSRCS) $(ctypeSRCS) $(printfSRCS) $(scanfSRCS)
19 fopenSRCS = testfopen.c
20 fopenOBJS = $(fopenSRCS:.c=.o)
21 testfopen: $(fopenOBJS)
22 $(CC) -o $@ $(fopenOBJS) $(LOCAL_LIB) -lm
25 $(RM) testfopen $(fopenOBJS)
30 ctypeSRCS = testctype.c
31 ctypeOBJS = $(ctypeSRCS:.c=.o)
32 testctype: $(ctypeOBJS)
33 $(CC) -o $@ $(ctypeOBJS) $(LOCAL_LIB) -lm
36 $(RM) testctype $(ctypeOBJS)
41 printfSRCS = testprintf.c
42 printfOBJS = $(printfSRCS:.c=.o)
43 testprintf: $(printfOBJS)
44 $(CC) -o $@ $(printfOBJS) $(LOCAL_LIB) -lm
47 $(RM) testprintf $(printfOBJS)
52 scanfSRCS = testscanf.c
53 scanfOBJS = $(scanfSRCS:.c=.o)
54 testscanf: $(scanfOBJS)
55 $(CC) -o $@ $(scanfOBJS) $(LOCAL_LIB) -lm
58 $(RM) testscanf $(scanfOBJS)
63 ############################################################
65 include $(CONFIG_DIR)/make.rules