nuclear@3: src = $(wildcard src/*.c) nuclear@0: obj = $(src:.c=.o) nuclear@0: bin = imgv nuclear@0: nuclear@0: CC = vc nuclear@3: nuclear@3: ifeq ($(CC), vc) nuclear@3: CFLAGS = -Isrc -Isrc/amiga nuclear@3: LDFLAGS = -lamiga nuclear@3: src += $(wildcard src/amiga/*.c) nuclear@3: else nuclear@3: CFLAGS = -pedantic -Wall -g -Isrc -Isrc/sdl `sdl-config --cflags` nuclear@3: LDFLAGS = `sdl-config --libs` nuclear@3: src += $(wildcard src/sdl/*.c) nuclear@3: endif nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin)