first commit
This commit is contained in:
23
CS4210/Project 1/client/makefile
Normal file
23
CS4210/Project 1/client/makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
CC = gcc
|
||||
OPT = -O3 -fomit-frame-pointer -march=i686
|
||||
LIBS = -lpthread
|
||||
TARGET = l33t_client
|
||||
MISC = makefile
|
||||
INCDIR = src/include
|
||||
SRCDIR = src
|
||||
BINDIR = bin
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(BINDIR)/ezxml.o $(BINDIR)/main.o
|
||||
$(CC) $(OPT) $(LIBS) -o $(BINDIR)/$(TARGET) $(BINDIR)/*.o
|
||||
|
||||
$(BINDIR)/ezxml.o: $(SRCDIR)/ezxml/ezxml.h $(SRCDIR)/ezxml/ezxml.c
|
||||
-mkdir bin > /dev/null
|
||||
$(CC) $(OPT) $(LIBS) -c -o $(BINDIR)/ezxml.o $(SRCDIR)/ezxml/ezxml.c
|
||||
|
||||
$(BINDIR)/main.o: $(SRCDIR)/main.c $(INCDIR)/test.h
|
||||
$(CC) $(OPT) $(LIBS) -c -o $(BINDIR)/main.o $(SRCDIR)/main.c
|
||||
|
||||
clean:
|
||||
rm -f $(BINDIR)/*.o $(BINDIR)/$(TARGET)
|
||||
Reference in New Issue
Block a user