amiga_imgv

diff Makefile @ 3:663471a80c21

broken + sdl emu
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 26 Oct 2017 15:49:56 +0300
parents a4788c959918
children 4c36d0f44aa6
line diff
     1.1 --- a/Makefile	Thu Oct 26 10:04:29 2017 +0300
     1.2 +++ b/Makefile	Thu Oct 26 15:49:56 2017 +0300
     1.3 @@ -1,10 +1,18 @@
     1.4 -src = $(wildcard src/*.c) $(wildcard src/amiga/*.c)
     1.5 +src = $(wildcard src/*.c)
     1.6  obj = $(src:.c=.o)
     1.7  bin = imgv
     1.8  
     1.9  CC = vc
    1.10 -CFLAGS = -Isrc -Isrc/amiga
    1.11 -LDFLAGS = -lamiga
    1.12 +
    1.13 +ifeq ($(CC), vc)
    1.14 +	CFLAGS = -Isrc -Isrc/amiga
    1.15 +	LDFLAGS = -lamiga
    1.16 +	src += $(wildcard src/amiga/*.c)
    1.17 +else
    1.18 +	CFLAGS = -pedantic -Wall -g -Isrc -Isrc/sdl `sdl-config --cflags`
    1.19 +	LDFLAGS = `sdl-config --libs`
    1.20 +	src += $(wildcard src/sdl/*.c)
    1.21 +endif
    1.22  
    1.23  $(bin): $(obj)
    1.24  	$(CC) -o $@ $(obj) $(LDFLAGS)