URL
https://opencores.org/ocsvn/copyblaze/copyblaze/trunk
Subversion Repositories copyblaze
[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [tools/] [asm/] [pBlazASM/] [pBlazASM/] [Makefile] - Rev 58
Go to most recent revision | Compare with Previous | Blame | View Log
#
# makefile for compiling for Windoze using MinGW w/o eclipse
# 16-jul-09 hvk initial
# 24-jul-09 hvk fixed echo
# 13-apr-10 hvk using 'MinGW/gcc' of Qt and 'rm' of Xilinx/cygwin
# 15-oct-10 hvk using ''tcc' of http://bellard.org/tcc/ and 'rm' of Xilinx/cygwin
#
## defines
#DRIVE=C:
DRIVE=/cygdrive/c
RM = rm
#MP = "C:/Qt/2010.04/mingw/include"
#CC = "C:/Qt/2010.04/mingw/bin/gcc"
#MP =
#CC = gcc
MP = $(DRIVE)/tcc/include
CC = $(DRIVE)/tcc/tcc.exe
C_SRCS += \
./pBlazASM.c \
./pbLexer.c \
./pbLibgen.c \
./pbParser.c \
./pbSymbols.c \
./getopt.c
EXE = "./pBlazASM.exe"
OBJS = $(C_SRCS:.c=.o)
LIBS =
INCS = -I$(MP) -I"../inc"
CFLAGS = $(INCS) -g3 -DWINDOWS -Wall -c -O3 -DTCC -DHAVE_STRING_H
## rules
# All Target
all: test
test: $(EXE)
$(EXE) -l -m pBlazASM_Syntax.psm
# Tool invocations
$(EXE): $(OBJS)
@echo Building: $(EXE)
$(CC) -o $@ $^ $(LIBS)
%.o: %.c %.h
@echo Building: "$@"
$(CC) $(CFLAGS) -o"$@" "$<"
# Other Targets
clean:
$(RM) $(OBJS)
$(RM) $(EXE)
.PHONY: all clean
.SECONDARY:
Go to most recent revision | Compare with Previous | Blame | View Log