summaryrefslogtreecommitdiff
path: root/tests/test-progs/chdir-print/Makefile
blob: 6a357d50409909d0321c9ea29f3176f77c85d746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

CPP := g++

TEST_OBJS := chdir-print.o
TEST_PROGS := $(TEST_OBJS:.o=)

# ==== Rules ==================================================================

.PHONY: default clean

default: $(TEST_PROGS)

clean:
	$(RM)  $(TEST_OBJS) $(TEST_PROGS)

$(TEST_PROGS): $(TEST_OBJS)
	$(CPP)  -static -o $@  $@.o

%.o: %.c Makefile
	$(CPP) -c -o $@ $*.c -msse3