Im trying to get bison and flex to compile using my makefile, but i just cant get it to work. This is the makefile i use...
Code:
APP := title
SRC_C := main.c
OBJS := $(SRC_C:.c=.o)
DEPS := $(SRC_C:.c=.d)
CC := gcc
CFLAGS := -pipe
CPPFLAGS := -Wall
TARGET_ARCH :=
RM := rm -f
ifdef RELEASE
CFLAGS += -s -O3
TARGET_ARCH += -march=i686
else
CFLAGS += -g
endif
LD := $(CC)
LDFLAGS := $(CFLAGS)
LDLIBS :=
%.d : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -MM -o $@ $<
$(APP) : $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
-include $(DEPS)
clean:
$(RM) $(APP)
$(RM) $(OBJS)
$(RM) $(DEPS)
If you know of anyway to incorporate bison and flex into this kind of makefile, please let me know.