Add i8042 back
[qemupp.git] / Makefile
blob1b0e4a3ef966a651e84e8c209730e44e9f6d2033
1 CXXFLAGS = -g -Wall -O -std=gnu++0x
2 CXXFLAGS += -MMD -MP -MF $@.d
3 CXXFLAGS += -Iinclude
5 OBJ := time/timer.o time/test-time-source.o
6 OBJ += device/device.o
7 # device/regio.o
8 OBJ += pc/i8254.o pc/mc146818a.o pc/i8042.o
9 #OBJ += pc/i8042.o pc/southbridge.o
10 OBJ += ps2/ps2.o ps2/ps2_keyboard.o ps2/ps2_mouse.o
11 OBJ += marshal/marshal.o marshal/xmlwriter.o
12 OBJ += test/timelib.o
14 PROGS := test-i8254 test-mc146818a test-timer test-marshal test-array test-kbd
15 PROGS += test-i8042 #test-southbridge test-regio
17 all: $(PROGS)
19 %.o: %.cpp
20 $(CXX) -c -o $@ $(CXXFLAGS) $<
22 test-%: test/test-%.o $(OBJ)
23 $(CXX) -o $@ $(LDFLAGS) $^ $(LDLIBS)
25 docs: Doxyfile
26 doxygen $<
28 check: $(PROGS)
29 @for i in $(PROGS); do \
30 ./$$i; \
31 done
33 clean:
34 $(RM) */*.o */*~ $(PROGS)
36 depclean: clean
37 $(RM) */*.o.d
39 .PHONY: clean docs
41 -include */*.d