Create the first assignment: 'timeserver'
This commit is contained in:
parent
bc6a19ff33
commit
a54d88dc70
6 changed files with 92 additions and 0 deletions
20
timeserver/Makefile
Normal file
20
timeserver/Makefile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue