20 lines
328 B
Makefile
20 lines
328 B
Makefile
CC = gcc -Wall -std=c99 -pedantic
|
|
SOURCES = timeserver.c
|
|
OBJECTS = timeserver.o
|
|
|
|
all: timeserver
|
|
|
|
timeserver: $(OBJECTS)
|
|
$(CC) $(OBJECTS) -o timeserver
|
|
|
|
timeserver.o: timeserver.c
|
|
$(CC) -c timeserver.c -o timeserver.o
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) timeserver timeserver.out
|
|
|
|
clean_objects:
|
|
rm -f $(OBJECTS)
|
|
|
|
run:
|
|
./timeserver
|