amiga_imgv
annotate Makefile @ 5:0d3d7b020e6a
progress...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 27 Oct 2017 12:32:24 +0300 |
parents | a4788c959918 |
children | 4c36d0f44aa6 |
rev | line source |
---|---|
nuclear@3 | 1 src = $(wildcard src/*.c) |
nuclear@0 | 2 obj = $(src:.c=.o) |
nuclear@0 | 3 bin = imgv |
nuclear@0 | 4 |
nuclear@0 | 5 CC = vc |
nuclear@3 | 6 |
nuclear@3 | 7 ifeq ($(CC), vc) |
nuclear@3 | 8 CFLAGS = -Isrc -Isrc/amiga |
nuclear@3 | 9 LDFLAGS = -lamiga |
nuclear@3 | 10 src += $(wildcard src/amiga/*.c) |
nuclear@3 | 11 else |
nuclear@3 | 12 CFLAGS = -pedantic -Wall -g -Isrc -Isrc/sdl `sdl-config --cflags` |
nuclear@3 | 13 LDFLAGS = `sdl-config --libs` |
nuclear@3 | 14 src += $(wildcard src/sdl/*.c) |
nuclear@3 | 15 endif |
nuclear@0 | 16 |
nuclear@0 | 17 $(bin): $(obj) |
nuclear@0 | 18 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 19 |
nuclear@0 | 20 .PHONY: clean |
nuclear@0 | 21 clean: |
nuclear@0 | 22 rm -f $(obj) $(bin) |