Fixup GNU Makefile for building intermediate tools

This commit is contained in:
Echelon9 2015-10-30 01:32:49 +11:00
parent 5366820fc7
commit 8a77ab6e1f
2 changed files with 10 additions and 9 deletions

3
.gitignore vendored
View file

@ -48,6 +48,9 @@ build/win32/[Rr]elease*/
Build/win32/ipch/
Ankh.NoLoad
#GCC
build/gnu/cxbe
#MonoDevelop
*.pidb
*.userprefs

View file

@ -33,11 +33,9 @@
# ******************************************************************
# * File Authors: Aaron Robinson, Edgar Hucek
# ******************************************************************
CC = g++
CFLAGS = -g -O2 -I../../src -I../../src/Common/Linux -I../..src/Linux
OBJCOPY = objcopy
GCC295 = cpp0-2.95
#LDFLAGS = -s -S -T ldscript.ld
CC ?= gcc
CXX ?= g++
CFLAGS = -g -O2 -Wall -I../../src -I../../src/Common/Linux -I../..src/Linux
OBJECTS = ../../src/Common/Error.o \
../../src/Common/Exe.o \
@ -51,16 +49,16 @@ RESOURCES =
all : cxbe
clean :
rm -rf *.o *~ core *.core ${OBJECTS} ${RESOURCES}
rm -rf *.o *~ core *.core ${OBJECTS} ${RESOURCES} ../../bin/cxbe ../../bin/cxbe.exe
${RM} *.o *~ core *.core ${OBJECTS} ${RESOURCES}
${RM} *.o *~ core *.core ${OBJECTS} ${RESOURCES} cxbe
cxbe : ${OBJECTS} ${RESOURCES}
${CC} -o ../../bin/$@ ${OBJECTS} ${RESOURCES} ${LDFLAGS-XBE}
${CXX} ${OBJECTS} ${RESOURCES} -o $@
### rules:
%.o : %.cpp
${CC} ${CFLAGS} -o $@ -c $<
${CXX} ${CFLAGS} -o $@ -c $<
%.o : %.c
${CC} ${CFLAGS} -o $@ -c $<