This commit is contained in:
Mylloon 2023-05-03 13:02:43 +02:00
parent 35001e8571
commit d6c2ad8411
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -5,33 +5,33 @@
# Modified : Anri KENNEL (anri.kennel@etud.univ-paris8.fr) - 03/05/2023
# Définition des commandes utilisées
CC = gcc
ECHO = echo
RM = rm -f
TAR = tar
ZIP = zip
CC = gcc
ECHO = echo
RM = rm -f
TAR = tar
ZIP = zip
MKDIR = mkdir
CHMOD = chmod
CP = rsync -R
CP = rsync -R
# Déclaration des options du compilateur
CFLAGS = -Wall -O3
CFLAGS = -Wall -O3
CPPFLAGS = -I.
LDFLAGS = -lm
LDFLAGS = -lm
# Définition des fichiers et dossiers
PACKNAME = api8_2023
PROGNAME = demo
VERSION = anri
distdir = $(PACKNAME)_$(PROGNAME)-$(VERSION)
HEADERS = $(wildcard includes/*.h)
SOURCES = main.c $(wildcard src/*.c)
MSVCSRC = $(patsubst %,<ClCompile Include=\"%\\\" \\/>,$(SOURCES))
OBJ = $(SOURCES:.c=.o)
DOXYFILE = documentation/Doxyfile
VSCFILES = $(PROGNAME).vcxproj $(PROGNAME).sln
PACKNAME = api8_2023
PROGNAME = demo
VERSION = anri
distdir = $(PACKNAME)_$(PROGNAME)-$(VERSION)
HEADERS = $(wildcard includes/*.h)
SOURCES = main.c $(wildcard src/*.c)
MSVCSRC = $(patsubst %,<ClCompile Include=\"%\\\" \\/>,$(SOURCES))
OBJ = $(SOURCES:.c=.o)
DOXYFILE = documentation/Doxyfile
VSCFILES = $(PROGNAME).vcxproj $(PROGNAME).sln
EXTRAFILES = COPYING $(wildcard shaders/*.?s images/*.png) $(VSCFILES)
DISTFILES = $(SOURCES) Makefile $(HEADERS) $(DOXYFILE) $(EXTRAFILES)
DISTFILES = $(SOURCES) Makefile $(HEADERS) $(DOXYFILE) $(EXTRAFILES)
# Traitements automatiques pour ajout de chemins et options (ne pas modifier)
ifneq (,$(shell ls -d /usr/local/include 2>/dev/null | tail -n 1))
@ -48,10 +48,10 @@ ifneq (,$(shell ls -d $(HOME)/local/lib 2>/dev/null | tail -n 1))
endif
ifeq ($(shell uname),Darwin)
MACOSX_DEPLOYMENT_TARGET = 11.0
CFLAGS += -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
LDFLAGS += -framework OpenGL -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
CFLAGS += -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
LDFLAGS += -framework OpenGL -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
else
LDFLAGS += -lGL
LDFLAGS += -lGL
endif
CPPFLAGS += $(shell sdl2-config --cflags)