#x86 makefile

CDK_SRC = /dm7000
CDKROOT = /dm7000/root/cdkroot
CDKBIN = /dm7000/root/cdk/bin
CPPC = g++
CC = gcc
STRIP = strip
INCLUDES = -I$(CDK_SRC)/driver/include -I.
COMPILER_FLAGS =  $(INCLUDES) -D __X86__ -D __VERSION=\"$(VERSION)\" -fno-exceptions
LINK_OPTIONS = -Wall -pipe -lpthread -lcrypt

include Makefile-includes

all: clean compile

compile: $(OBJECTS)
	$(CPPC) $(LINK_OPTIONS) -o rqcamd.x86 $(OBJECTS)
	$(STRIP) rqcamd.x86 -o rqcamd.x86

%.o: %.cpp
	$(CPPC) $(COMPILER_FLAGS) -c -o $*.o $<

clean:
	rm -f *.o
	rm -f webif/rqsp-server.o
	rm -f webif/rqsp-server-huffman.o
	rm -f webif/rqsp-content.o
	rm -f rqcamd.x86
