author | Markus Bröker<broeker.markus@googlemail.com> |
Sun, 10 Feb 2019 13:17:01 +0100 | |
changeset 173 | 374a86886bc5 |
parent 157 | e8fbd0653fda |
permissions | -rw-r--r-- |
CC = gcc -g -ggdb CFLAGS = -Wall -O2 -Iinclude NASM = nasm -f elf -Iinclude/ TARGET = client TARGET += server SOBJECTS = server.o SOBJECTS += set_proc_limit.o COBJECTS = client.o .SUFFIXES: .c .asm .c.o: @echo Compiling $< ... @$(CC) -c $(CFLAGS) -o $@ $< all: $(TARGET) server: $(SOBJECTS) @echo Linking $< ... @$(CC) $(CFLAGS) -o $@ $(SOBJECTS) client: $(COBJECTS) @echo Linking $< ... @$(CC) $(CFLAGS) -o $@ $(COBJECTS) .PHONY: clean uninstall clean: rm -f *.o *~ rm -f $(TARGET)