1 src = src/sumhack.cpp src/events.cpp
4 include src/parts/Makefile-part
5 include src/sdlvf/Makefile-part
8 obj = $(src:.cpp=.o) $(csrc:.c=.o)
12 CXXFLAGS = -ansi -pedantic -Wall $(opt) -Isrc/3dengfx/src -MMD `sdl-config --cflags`
13 CFLAGS = -std=c89 -pedantic -Wall $(opt) -MMD `sdl-config --cflags`
14 libs = -Llibs src/3dengfx/lib3dengfx.a `sdl-config --libs` -lGL -lvorbis -logg \
15 -ljpeg -lpng -lz -l3ds
17 $(bin): $(obj) 3dengfx libs
18 $(CXX) -o $@ $(obj) $(libs)
22 $(MAKE) -C src/3dengfx
26 $(MAKE) -C src/3dengfx clean
35 clean-all: clean 3dengfx-clean cleandep clean-libs