Optimize Makefiles

This commit is contained in:
2016-08-29 21:01:09 +02:00
committed by Valeriano A.R
parent ddd7ac034a
commit 2a74dea233
6 changed files with 59 additions and 59 deletions

View File

@@ -1,16 +1,16 @@
CC = gcc
AR = ar
LAUNCHER =
RM = rm -rf
MKDIR = mkdir
ECHO = echo
CC := gcc
AR := ar
LAUNCHER :=
RM := rm -rf
MKDIR := mkdir
ECHO := echo
LIBS := -lSDL -lpthread -L/usr/X11R6/lib -L/usr/lib -lm -lGL -lX11
CFLAGS := -Wall -g -I/usr/include/ -I/usr/include/SDL/ -I/usr/X11R6/include/
LDFLAGS :=
LIBS = -lSDL -lpthread -L/usr/X11R6/lib -L/usr/lib -lm -lGL -lX11
CFLAGS = -Wall -g -I/usr/include/ -I/usr/include/SDL/ -I/usr/X11R6/include/
LDFLAGS =
RES_GAMELIB = libgame.a
RES_GAME = game
BUILDDIR = build-$(shell gcc -v 2>&1 | grep "Target:" | cut --delimiter=' ' --fields=2)
RES_GAMELIB := libgame.a
RES_GAME := game
BUILDDIR := build-$(shell gcc -v 2>&1 | grep "Target:" | cut --delimiter=' ' --fields=2)
include Makefile.common