dos3d

annotate firstp/Makefile @ 24:698c4d07702d

fixed the linux makefile
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 20 Jun 2017 21:55:49 +0300
parents
children
rev   line source
nuclear@14 1 mgldir = ../src
nuclear@14 2 demudir = ../dosemu
nuclear@14 3
nuclear@14 4 obj = firstp.o \
nuclear@14 5 $(mgldir)/mingl.o $(mgldir)/mglrast.o $(mgldir)/mglgen.o \
nuclear@14 6 $(mgldir)/texture.o $(mgldir)/palman.o \
nuclear@14 7 $(mgldir)/cvec.o $(mgldir)/scene.o \
nuclear@14 8 $(demudir)/dosemu.o
nuclear@14 9 dep = $(obj:.o=.d)
nuclear@14 10 bin = firstp
nuclear@14 11
nuclear@14 12 CC = gcc
nuclear@14 13 CFLAGS = -pedantic -Wall -g `pkg-config --cflags sdl` -I$(mgldir) -I$(demudir)
nuclear@14 14 LDFLAGS = `pkg-config --libs sdl`
nuclear@14 15
nuclear@14 16 $(bin): $(obj)
nuclear@14 17 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@14 18
nuclear@14 19 -include $(dep)
nuclear@14 20
nuclear@14 21 %.d: %.c
nuclear@14 22 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@14 23
nuclear@14 24 .PHONY: clean
nuclear@14 25 clean:
nuclear@14 26 rm -f $(obj) $(bin)
nuclear@14 27
nuclear@14 28 .PHONY: cleandep
nuclear@14 29 cleandep:
nuclear@14 30 rm -f $(dep)