#CROSS := arm-linux-
CC := $(CROSS)gcc
LIBS := -lpthread
INCDIR := -I./
CFLAGS = -Wall -O2 $(INCDIR)

BIN := dj_run2
OBJS := dj_event2.o dj_run2.o

SRCS := $(OBJS:.o=.c)

all: $(BIN)

$(BIN): $(OBJS)
        $(CC) $(CFLAGS) $(LIBS) -o $@ $^

%.o:%.c
        $(CC) $(CFLAGS) -c -o $@ $<

clean:
        rm -f *.o $(BIN)

tags:
        find ./ -name "*.[ch]" | ctags -L-

dep:
        gccmakedep -- $(CFLAGS) -- $(SRCS)