Profiling support added
* To use the benefits of profiling, set PROFILING=<target>
* eg: mbroeker@localhost $ make -e PROFILING=linux
* mbroeker@localhost $ export PROFILING=linux && make
committer: Markus Bröker <mbroeker@largo.homelinux.org>
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)