blob: 4b7cc3638d2b582e1b9351d0273e0de7453caf52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# spout
# SDLÍÑmakefile
.SUFFIXES: .o .c
SDL_LIB = /usr/local/lib
SDL_INCLUDE = /usr/local/include/SDL
CC = gcc
CFLAGS = -I$(SDL_INCLUDE) -O2 -mno-cygwin
LD = gcc
LDFLAGS = -L$(SDL_LIB) -L. -lmingw32 -lSDLmain -lSDL -mwindows
PRGNAME = spout
OBJS = spout.o piece.o
$(PRGNAME).exe: $(OBJS)
$(LD) $(CFLAGS) -o $(PRGNAME).exe $(OBJS) $(RES) $(LDFLAGS)
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
spout.o: piece.h font.h sintable.h
piece.c: piece.h
clean:
rm -f $(PRGNAME).exe *.o
run: $(PRGNAME).exe
$(PRGNAME).exe
|