GitLab system status is available here and here

Commit a6075bb4 authored by Ethan L. Miller's avatar Ethan L. Miller 💬
Browse files

Added sample files to asgn0

parent 0dedec24
Pipeline #1522 passed with stages
in 29 seconds
SOURCES = myecho.c
TARGET = myecho
CXXFLAGS=-std=gnu++11 -Wall -Wextra -Wpedantic -Wshadow -g -Og
CFLAGS=-std=c99 -Wall -Wextra -Wpedantic -Wshadow -g -Og
# _submit_CXXFLAGS=-std=gnu++11 -Wall -Wextra -Wpedantic -Wshadow -g -O2
OBJECTS=$(SOURCES:.c=.o)
DEPS=$(SOURCES:.c=.d)
# OBJECTS=$(SOURCES:.cpp=.o)
# DEPS=$(SOURCES:.cpp=.d)
CXX=clang++
CC=clang
all: $(TARGET)
clean:
-rm $(DEPS) $(OBJECTS)
spotless: clean
-rm $(TARGET)
format:
clang-format -i $(SOURCES) $(INCLUDES)
$(TARGET): $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $(OBJECTS)
%.o: %.c
$(CC) $(CFLAGS) -c -MD $<
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -MD $<
-include $(DEPS)
.PHONY: all clean format spotless
#include <stdio.h>
int
main (int argc, const char *argv[])
{
for (int i = 1; i < argc; ++i) {
if (i > 1) {
putchar (' ');
}
printf ("%s", argv[i]);
}
putchar ('\n');
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment