nuclear@0: src = $(wildcard src/*.cc) nuclear@0: obj = $(src:.cc=.o) nuclear@0: dep = $(obj:.o=.d) nuclear@10: bin = eqemu nuclear@0: nuclear@10: libimago_path = libs/libimago nuclear@10: libimago = $(libimago_path)/libimago.a nuclear@10: nuclear@10: CFLAGS = -pedantic -Wall -g -I$(libimago_path)/src nuclear@0: CXXFLAGS = $(CFLAGS) nuclear@10: LDFLAGS = -lGL -lGLU -lGLEW -lX11 -lm -lpthread -L$(libimago_path) -limago -lpng -ljpeg -lz nuclear@0: nuclear@10: $(bin): $(obj) $(libimago) nuclear@0: $(CXX) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: -include $(dep) nuclear@0: nuclear@0: %.d: %.cc nuclear@0: @$(CPP) $< $(CXXFLAGS) -MM -MT $(@:.d=.o) >$@ nuclear@0: nuclear@10: .PHONY: $(libimago) nuclear@10: $(libimago): nuclear@10: cd $(libimago_path) && ./configure --disable-debug --enable-opt nuclear@10: $(MAKE) -C $(libimago_path) nuclear@10: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin) nuclear@10: nuclear@10: .PHONY: clean-libs nuclear@10: clean-libs: nuclear@10: $(MAKE) -C $(libimago_path) clean