diff --git a/20220404/Makefile b/20220404/Makefile index f6b6055dee93f47bde83b09e1618e38152ac699f..5ce401dd46fbd7266779a960b7ddfda0197b3a70 120000 --- a/20220404/Makefile +++ b/20220404/Makefile @@ -1 +1 @@ -Makefile-modules-1 \ No newline at end of file +Makefile-modules \ No newline at end of file diff --git a/20220404/Makefile-4 b/20220404/Makefile-4 new file mode 100644 index 0000000000000000000000000000000000000000..70bd5fe6b41e20594ceaab84ab7073efd1fe8972 --- /dev/null +++ b/20220404/Makefile-4 @@ -0,0 +1,15 @@ +TARGET = philosophy +OBJECTS = philosophy.o answer.o +HEADERS = answer.h +CFLAGS = -Wall -O + +all: $(TARGET) + +$(TARGET): $(OBJECTS) + gcc $(OBJECTS) -o $(TARGET) + +%.o: %.c $(HEADERS) + gcc $(CFLAGS) $< -c + +clean: + rm -f $(OBJECTS) $(TARGET) diff --git a/20220404/Makefile-modules-1 b/20220404/Makefile-modules similarity index 100% rename from 20220404/Makefile-modules-1 rename to 20220404/Makefile-modules