PixelWars/Makefile
2015-01-12 23:32:49 +01:00

34 lines
531 B
Makefile

CC=gcc
ifdef SystemRoot
RM=del /Q
FixPath=$(subst /,\,$1)
BINARY=PixelWars.exe
LIB=-lSDL -lm -L./lib
FLAGS=-Wall -I./include
else
ifeq ($(shell uname), Linux)
RM=rm -f
FixPath=$1
BINARY=PixelWars
LIB=-lSDL -lm
FLAGS=-Wall
endif
endif
all : $(BINARY)
orange : orange.o
purple : purple.o
main : main.o generator.o
$(BINARY) : orange.o purple.o main.o generator.o
$(CC) main.o generator.o orange.o purple.o -o $(BINARY) $(LIB)
%.o: %.c
$(CC) -o $@ -c $< $(FLAGS)
clean :
$(RM) *.o $(BINARY) *.stackdump *~