2020-08-17 18:39:06 +02:00
|
|
|
CC = gcc
|
2020-09-06 00:40:24 +02:00
|
|
|
FLAGS = -std=c99 -pedantic -Wpedantic -Wall -O3
|
2020-08-10 23:09:33 +02:00
|
|
|
|
2020-08-17 18:39:06 +02:00
|
|
|
LIBS = -lSDL2
|
|
|
|
# comment this line if you are under Linux :
|
2020-08-17 18:45:24 +02:00
|
|
|
WIN32-LIBS = -lmingw32 -lSDL2main -Wl,-subsystem,windows
|
2020-08-10 23:09:33 +02:00
|
|
|
|
2020-08-17 18:39:06 +02:00
|
|
|
# comment this line if you are under Linux :
|
|
|
|
WIN32-RES = reinetteII+.res
|
2020-08-10 23:09:33 +02:00
|
|
|
|
2020-08-17 18:39:06 +02:00
|
|
|
reinetteII+: reinetteII+.c puce6502.c $(WIN32-RES)
|
|
|
|
$(CC) $^ $(FLAGS) $(WIN32-LIBS) $(LIBS) -o $@
|
2020-08-08 21:31:50 +02:00
|
|
|
|
2020-08-17 18:39:06 +02:00
|
|
|
reinetteII+.res: reinetteII+.rc
|
2020-09-06 00:40:24 +02:00
|
|
|
windres $^ -O coff -o $(WIN32-RES)
|
2020-08-08 21:31:50 +02:00
|
|
|
|
|
|
|
all: reinetteII+
|