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