--- /dev/null
+CC := c++
+CFLAGS = -std=c++98 -Wall -Wextra -Werror -Wpedantic
+
+ifneq ("$(wildcard .debug)","")
+ CFLAGS += -g
+endif
+
+RM := rm -f
+
+INCDIR := inc
+INCDIR += $(addsuffix /inc, $(SUBPROJECTS));
+ifneq ($(INCLUDE),)
+ INCLUDE := $(addprefix -I, $(INCDIR))
+endif
+
+SRCDIR := .
+
+SOURCES := megaphone.cpp
+
+SOURCES := $(addprefix $(SRCDIR)/, $(SOURCES))
+
+OBJECTS := $(SOURCES:.cpp=.o)
+
+NAME := megaphone
+
+all : $(NAME)
+
+debug : .debug
+ $(MAKE) all
+
+nodebug :
+ $(RM) .debug
+ $(MAKE) re
+
+.% :
+ $(MAKE) shallow_fclean
+ touch $@
+
+$(NAME) : $(OBJECTS)
+ $(CC) $(CFLAGS) -o $@ $^ $(LINKS)
+
+%.o : %.cpp
+ $(CC) $(CFLAGS) -o $@ -c $< $(INCLUDE)
+
+clean :
+ $(RM) $(OBJECTS)
+
+fclean : clean
+ $(RM) $(NAME)
+
+re : fclean
+ $(MAKE) all
--- /dev/null
+#include <iostream>
+#include <cstring>
+#include <cctype>
+
+char *make_uppercase(char *&str)
+{
+ for (size_t i = 0; i < std::strlen(str); ++i)
+ str[i] = std::toupper(str[i]);
+ return (str);
+}
+
+int main(int argc, char **argv)
+{
+ if (argc == 1)
+ std::cout << "* LOUD AND UNBEARABLE FEEDBACK NOISE *";
+ for (int i = 1; i < argc; ++i)
+ std::cout << make_uppercase(argv[i]);
+ std::cout << std::endl;
+ return (0);
+}