summaryrefslogtreecommitdiff
path: root/test/ctype/Makefile
blob: ca689f33f90eb472eeb86c64a1acc8f7f4df9cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TESTDIR=../
include $(TESTDIR)/Rules.mak

TARGETS=ctype ctype_run
all: $(TARGETS)

ctype: ctype.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
	-@ echo "-------"
	-@ echo " "
	-@ echo "Compiling vs uClibc: "
	-@ echo " "
	$(CC) $(CFLAGS) -c $< -o $@.o
	$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
	$(STRIPTOOL) -x -R .note -R .comment $@

ctype_run:
	./ctype
	-@ echo " "
clean:
	rm -f *.[oa] *~ core $(TARGETS)