Began creating the listbox widget. It's still just a structure.
[xuni.git] / Makewin
blob53fc6f4dee291f1026a31b70c2515e92ae96a110
1 # Makefile for xuni, Windows version
3 SDLLIBPATH = lib
4 SDLINCPATH = include
6 CC = gcc
7 CFLAGS = -W -Wall -ansi -pedantic -g -I$(SDLINCPATH)
8 CLINK = -lm -lSDL.dll -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf
10 OBJ = game.o graphics.o loop.o menu.o options.o xuni.o
11 TARGET = xuni.exe
13 # Default target: all
14 all: $(TARGET)
16 # Executable files
17 #$(CC) $(CFLAGS) -o $(TARGET) $(OBJ) $(CLINK)
18 $(TARGET): $(OBJ)
19         $(CC) -L$(SDLLIBPATH) -o $(TARGET) $(OBJ) -lSDL_gfx -lSDLmain -lSDL.dll -lSDL -lSDL_image -lSDL_ttf
21 # Source files
22 game.o: game.c game.h graphics.h loop.h xuni.h
23 graphics.o: graphics.c graphics.h xuni.h
24 loop.o: loop.c loop.h menu.h xuni.h
25 menu.o: menu.c graphics.h loop.h menu.h xuni.h
26 options.o: options.c graphics.h loop.h options.h xuni.h
27 xuni.o: xuni.c graphics.h menu.h xuni.h
29 # Other targets
30 run: $(TARGET)
31         ./$(TARGET)
32 runa: $(TARGET)
33         ./$(TARGET) `line`
34 debug: $(TARGET)
35         gdb ./$(TARGET)
36 clean:
37         -rm $(TARGET) $(OBJ)