author | Markus Brökers <mbroeker@largo.homelinux.org> |
Sun, 29 Aug 2010 15:29:22 +0200 | |
changeset 144 | f064cd793f8d |
parent 68 | d549894aa6a9 |
child 157 | e8fbd0653fda |
permissions | -rw-r--r-- |
CC = gcc -g -ggdb CFLAGS = -Wall -O2 -Iinclude -ansi 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)