Skip to content

Commit

Permalink
Added Makefile and .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Thulinma committed Dec 13, 2011
1 parent 388921f commit fecb237
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.o
bumblebeed

23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
SRC = bumblebeed.c bbsocket.c bbglobals.c bblogger.c
OBJ = $(SRC:.c=.o)
OUT = bumblebeed
INCLUDES =
DEBUG = 4
OPTIMIZE = -g
VERSION = `git describe --tags`
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG) -DVERSION=$(VERSION)
CC = $(CROSS)gcc
LD = $(CROSS)ld
AR = $(CROSS)ar
LIBS =
.SUFFIXES: .c
.PHONY: clean default
default: $(OUT)
.c.o:
$(CC) $(INCLUDES) $(CCFLAGS) $(LIBS) -c $< -o $@
$(OUT): $(OBJ)
$(CC) $(LIBS) -o $(OUT) $(OBJ)
clean:
rm -rf $(OBJ) $(OUT) *~


0 comments on commit fecb237

Please sign in to comment.