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