Files
mcmartin a82bcf1338 Removed executable flags from a ridiculous number of non-executable files.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2661 8092fc87-c524-0410-9efc-e669fe64eaf9
2007-01-13 07:03:15 +00:00

39 lines
806 B
Makefile

########################################################################
# This is a GNU makefile - tested on CYGWIN and Linux
#
# You may need to compile or install libpng and/or zlib before
# compiling this.
#
TARGET1 = pal2uqm
TARGET2 = palarith
# These flags are needed to get it to compile with libpngX.dll on CYGWIN
#CYGWINFLAGS =
CC = gcc
CFLAGS = -W -Wall -O0 # -g
LIBS = -L/usr/local/lib -lm
LDFLAGS=
BINS = $(TARGET1) $(TARGET2) $(TARGET1).exe $(TARGET2).exe
SRCS = pal2uqm.c palarith.c
OBJS1 = pal2uqm.o
OBJS2 = palarith.o
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CFLAGS) -o $@ $*.c $(CYGWINFLAGS)
all: $(TARGET1) $(TARGET2)
$(TARGET1): $(OBJS1)
$(CC) -o $(TARGET1) $(OBJS1) $(LIBS) $(LDFLAGS)
$(TARGET2): $(OBJS2)
$(CC) -o $(TARGET2) $(OBJS2) $(LIBS) $(LDFLAGS)
clean:
rm -f $(BINS) *.o