]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Update Makefile for C++
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 11 Oct 2015 22:13:13 +0000 (00:13 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 11 Oct 2015 22:13:13 +0000 (00:13 +0200)
This is forgotten commit from yesterday.

scripts/kconfig2dot/Makefile

index 1b14c60c9cc2d0101b06164771f763c293b3929e..10eda8dd411a41c9bd26e152cb5a1ced8f0ae28f 100644 (file)
@@ -15,8 +15,11 @@ INCLUDES = -I../shared
 %.o: %.c
        gcc -c $(CFLAGS) -o $@ $^ $(INCLUDES)
 
+%.o: %.cc
+       g++ -c $(CFLAGS) -o $@ $^ $(INCLUDES)
+
 kconfig2dot: $(OBJ) $(KCONFIG_OBJ)
-       gcc -o $@ $^
+       g++ -o $@ $^
 
 clean::
        $(RM) $(OBJ)