mirror of
https://github.com/libretro/cpp-cheat.git
synced 2025-04-13 00:30:27 +00:00
18 lines
262 B
Makefile
18 lines
262 B
Makefile
.POSIX:
|
|
.PHONY: run clean
|
|
|
|
main.out: main.o cpp.o
|
|
g++ -o '$@' $^
|
|
|
|
cpp.o: cpp.cpp
|
|
g++ -c -o '$@' -pedantic-errors -std=c++98 -Wextra '$<'
|
|
|
|
main.o: main.c
|
|
gcc -c -o '$@' -pedantic-errors -std=c89 -Wextra '$<'
|
|
|
|
run: main.out
|
|
./main.out
|
|
|
|
clean:
|
|
rm -f *.o *.out
|