now it breaks on including Xlib.h

This commit is contained in:
Michael Zhang 2020-11-02 00:36:32 -06:00
parent 35288b2ca7
commit 46ef865ebf
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
3 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
*.c *.c
*.xml *.xml
ableC.jar ableC.jar
/multiclip

View file

@ -12,6 +12,9 @@ override XCFLAGS += $(addprefix -I,$(XC_INCLUDE_DIRS))
override SVFLAGS += $(addprefix -I ,$(GRAMMAR_DIRS)) override SVFLAGS += $(addprefix -I ,$(GRAMMAR_DIRS))
override LIBS += $(shell pkg-config --libs bdw-gc)
override INCLUDES += $(shell pkg-config --cflags bdw-gc)
all: multiclip all: multiclip
$(ABLEC_JAR): $(GRAMMAR_SOURCES) $(ABLEC_JAR): $(GRAMMAR_SOURCES)
@ -19,10 +22,10 @@ $(ABLEC_JAR): $(GRAMMAR_SOURCES)
silver-ableC -o $@ $(SVFLAGS) $(ARTIFACT) silver-ableC -o $@ $(SVFLAGS) $(ARTIFACT)
multiclip: main.c multiclip: main.c
gcc -o $@ -lgc $< gcc -o $@ $(LIBS) $(INCLUDES) $<
main.c: main.xc $(ABLEC_JAR) main.c: main.xc $(ABLEC_JAR)
java -jar $(ABLEC_JAR) $< -o $@ $(XCFLAGS) java -jar $(ABLEC_JAR) $< $(XCFLAGS)
clean: clean:
rm -f multiclip rm -f multiclip

View file

@ -1,4 +1,5 @@
#include <string.xh> #include <string.xh>
#include <X11/Xlib.h>
#include <stdio.h> #include <stdio.h>