cpp-optimizations/Makefile

14 lines
258 B
Makefile
Raw Normal View History

2022-05-03 12:06:05 +00:00
CPP=g++
OBJS := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o 02-pass-by-ref/ref.o 02-pass-by-ref/no-ref.o
2022-05-03 12:06:05 +00:00
2022-06-17 12:36:23 +00:00
all: $(OBJS)
2022-05-03 12:06:05 +00:00
%.o: %.cpp
2022-06-17 12:36:23 +00:00
$(CPP) $< -o $@ -c
.PHONY: clean all
2022-05-03 12:06:05 +00:00
clean:
2022-06-17 12:36:23 +00:00
$(RM) $(OBJS)